| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158161 | 陈襗葳 | 统计硬币 | C++ | Accepted | 2 MS | 268 KB | 433 | 2026-08-20 16:56:20 |
#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){ break; } if(x+y*2+z*5==m){ cnt++; } } } cout<<cnt<<endl; } }