Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
2115 | 孙灏洋 | 兑换硬币 | C++ | Compile Error | 0 | 0 MS | 0 KB | 249 | 2019-11-08 20:26:49 |
#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; }