当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6555:The Fool

题目描述
The Fool is numbered 0 – the number of unlimited potential –and therefore does not have a specific place in the sequence of the Tarot cards. The Fool can be placed either at the beginning of the Major Arcana or at the end. The Major Arcana is often considered as the Fool’s journey through life and as such, he is
ever present and therefore needs no number.


Given n ∈ $N_+$, print the parity of
$\sum\limits_{i=1}^N$ [$\frac{n}{i}$],

where [x] = max a (a∈Z,a≤x)
输入解释
The first line of the input contains one integer $T$ ≤ 100, denoting the number of testcases. Then $T$ testcases follow.
In each of the $T$ testcases, there is a positive number $n$ ≤ $10^9$.
输出解释
For each testcase, print a single line starting with “Case $i$ : ”($i$ indicates the case number) and then “even” or “odd”, separated with a single space.
输入样例
3
1
10000
100000000
输出样例
Case 1: odd
Case 2: even
Case 3: even
来自杭电HDUOJ的附加信息
Recommend chendu

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-6555

最后修改于 2020-10-25T23:32:17+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 262144/262144K(Java/Others)