| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158155 | 陈襗葳 | 统计硬币 | C++ | Wrong Answer | 2 MS | 272 KB | 352 | 2026-08-20 16:53:18 |
#include <iostream> using namespace std; int main(){ long long T,n,m; cin>>T; for(int i=0;i<=T;i++){ cin>>n>>m; int cnt=0; for(int z=0;z<=m/5;z++){ for(int y=0;y<=m/2;y++){ int x=n-z-y; if(x<0){ cnt++; } } } cout<<cnt<<endl; } }
------Input------
20 5 10 8 20 3 6 2 4 10 26 11 27 1 1 1 2 2 2 1 5 5 25 100 250 1000 3000 26 120 9 30 12 27 7 25 27 54 32 100 4 13
------Answer-----
2 2 1 1 3 3 1 1 1 1 1 21 167 1 2 3 1 7 6 1
------Your output-----
3 20 1 0 33 27 0 0 0 3 57 2550 480800 1150 63 21 45 55 588 9 9