Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5937 | D班-陈颖钧 | 换零钱-2 | C++ | Wrong Answer | 0 | 2 MS | 256 KB | 354 | 2025-02-16 16:55:32 |
#include<bits/stdc++.h> using namespace std; int j,i,k; int main(){ for(i=1;i<=9;i++){ for(j=1;j<=19;j++){ for(k=1;k<=50;k++){ if(i*10+j*5+k*2+(20-j-i-k)*1==100&&i+j+k+(20-i-j-k)==20){ cout<<i<<' '<<j<<' '<<k<<' '<<20-j-k-i<<endl; } } } } return 0; }