Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
58647 teacher_wang 换零钱 [1*] C++ Accepted 0 MS 236 KB 332 2024-12-13 19:53:12

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int cnt = 0; for(int x = 1; x <= 19; x ++) { for(int y = 1; y < 100 - x; y ++) { int z = 100 - x - y; if(5*x+y+0.5*z==100) cnt ++; } } cout<<cnt; return 0; }


Judgement Protocol: