Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
55833 | 张思存 | 家务报酬 | C++ | Accepted | 0 MS | 244 KB | 209 | 2024-11-08 15:54:26 |
#include<iostream> using namespace std; int main() { int a; cin>>a; int n=a/50; int s=a-n*50; int d=s/20; int f=a-n*50-d*20; int g=f/5; int h=a-n*50-d*20-g*5; cout<<n+d+g+h; return 0; }