Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
2137 龚施宇 兑换硬币 C++ 解答错误 0 0 MS 252 KB 259 2019-11-09 13:02:21

Tests(0/4):


#include<iostream> using namespace std; int main(){ int money,y1,y2,y5,total=0; cin>>money; money=money*100; for(int i=1;i<=money/5-1;i++){ int left=money-5*i; if(i%2==1) total=left/2; else total+=left/2-1; } cout<<total; return 0; }


测评信息:

输入

100

输出

2

答案

4996001

系统信息

exit code: 0, checker exit code: 0