#include<iostream>
using namespace std;
int main()
{
__int64 n;
while(scanf("%I64d", &n) != EOF && n)
{
printf("%I64d\n", (n-1) / 2);
}
return 0;
}hdu 1273 漫步森林
最新推荐文章于 2023-08-26 17:20:36 发布
本程序演示了如何读取64位整数并对其进行特定的除法运算,输出结果。使用了C++标准库中的__int64类型进行大整数处理,并通过scanf和printf函数进行输入输出。
367

被折叠的 条评论
为什么被折叠?



