Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101532 | 林泽豪 | 换零钱2 | C++ | 运行超时 | 80 | 1990 MS | 244 KB | 318 | 2023-09-09 10:11:45 |
#include<iostream> #include<cstdio> using namespace std; int main(){ //freopen("statistics.in","r",stdin); //freopen("statistics.out","w",stdout); long int n,p=0; cin>>n; for(int i=1;i<=n/10;i+=1){ for(int o=1;o<=(n-i*10)/5;o++){ if(n-i*10-o*5!=0)p++; } } cout<<p; }