Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
58227 | 王一涵(吃土豆长大的马铃薯) | 家务报酬 | C++ | Accepted | 0 MS | 244 KB | 209 | 2024-12-05 16:48:08 |
#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; }