| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 | 
|---|---|---|---|---|---|---|---|---|
| 135165 | 李馥甄 | 百钱买百鸡II | C++ | Wrong Answer | 2 MS | 276 KB | 282 | 2025-11-02 17:13:31 | 
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; int cnt=0; for(int x=0;x<=N;x++){ for(int y=0;y<=N-x;y++){ int z=N-x-y; if(3*N==x*15+y*9+z){ cnt++; cout<<cnt<<": "<<x/3<<","<<y/3<<","<<z/3<<endl; } } } 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: 0,44,138 2: 2,42,139 3: 3,40,140 4: 4,37,141 5: 6,35,142 6: 7,33,143 7: 8,30,144 8: 10,28,145 9: 11,26,146 10: 12,23,147 11: 14,21,148 12: 15,19,149 13: 16,16,150 14: 18,14,151 15: 19,12,152 16: 20,9,153 17: 22,7,154 18: 23,5,155 19: 24,2,156 20: 26,0,157