| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157726 | 张蔚林 | 百钱买百鸡II | C++ | Wrong Answer | 7 MS | 268 KB | 319 | 2026-08-16 11:48:08 |
#include<bits/stdc++.h> using namespace std; int main() { int n,c=0; cin>>n; for(int g=0;g<n/3;g++){ for(int m=0;m<n/3;m++){ for(int x=0;x<n/3;x++){ if(g+m+x*3==n&&5*g+3*m+x==n){ c++; cout<<c<<":"<<g<<","<<m<<","<<x; } } } } if(c==0){ cout<<"Nome"; } return 0; }
------Input------
550
------Answer-----
1: 2,134,414 2: 6,127,417 3: 10,120,420 4: 14,113,423 5: 18,106,426 6: 22,99,429 7: 26,92,432 8: 30,85,435 9: 34,78,438 10: 38,71,441 11: 42,64,444 12: 46,57,447 13: 50,50,450 14: 54,43,453 15: 58,36,456 16: 62,29,459 17: 66,22,462 18: 70,15,465 19: 74,8,468 20: 78,1,471
------Your output-----
1:2,134,1382:6,127,1393:10,120,1404:14,113,1415:18,106,1426:22,99,1437:26,92,1448:30,85,1459:34,78,14610:38,71,14711:42,64,14812:46,57,14913:50,50,15014:54,43,15115:58,36,15216:62,29,15317:66,22,15418:70,15,15519:74,8,15620:78,1,157