Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
46400 | 杨中琦 | 兑换硬币 | C++ | Accepted | 100 | 2 MS | 256 KB | 244 | 2022-07-13 13:01:21 |
#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; }