Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
47103 wutong 换零钱 [1*] C++ 解答错误 1 MS 236 KB 350 2024-05-12 14:55:28

Tests(0/1):


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


测评信息: