| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1989 | 张志鹏 | 兑换硬币 | C++ | Accepted | 100 | 4 MS | 252 KB | 244 | 2019-11-03 12:36:32 |
#include<iostream> using namespace std; int main(){ int i=0,a,m,b,n,c; cin>>a; a=a*100; m=a/5; while (m>0) { b=a-5*m; n=b/2; while (n>0) { c=b-2*n; if (c!=0) i++; n--; } m--; } cout<<i; return 0; }