Grasshopper

Codeforces Round 753 (Div. 3) B. Odd Grasshopper

一维坐标轴上,蚱蜢一开始在 \(x_0\) 。在第 \(1\) 秒往后的每秒,第 \(i\) 秒蚱蜢可以跳 \(i\) 步。即若当时在 \(x\) ,可以跳到 \(x + i\) 或 \(x - i\) 。额外的,若 \(x\) 为偶数,蚱蜢会往左跳;否则会往右跳。 询问 \(n\) 秒后蚱蜢的坐标 ......
Grasshopper Codeforces Round 753 Div

Grasshopper - Summation

Summation Write a program that finds the summation of every number from 1 to num. The number will always be a positive integer greater than 0. For exa ......
Grasshopper Summation
共2篇  :1/1页 首页上一页1下一页尾页