Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5970 | D班-罗炜翰 | 换零钱-1 | C++ | Accepted | 100 | 1 MS | 256 KB | 304 | 2025-02-16 17:54:23 |
#include<bits/stdc++.h> using namespace std; int main() { int b = 0,k; float a = 0,n; cin>>n; for(int i = 1;i<=100;i++) { for(int j = 1;j<=100;j++) { k = 100 - i - j; a = i * 5 + j * 1 + k * 0.5; if(a == n && i + j + k == 100) { b++; } } } cout<<b; }