| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153572 | 张皓凯 | 小明养猪的故事 | C++ | Wrong Answer | 0 MS | 268 KB | 208 | 2026-05-23 09:40:02 |
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; for(int i=0;i<t;++i) { int n; cin>>n; cout<<n-1-n/3<<endl; } return 0; }
------Input------
17 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
------Answer-----
1 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765
------Your output-----
0 2 3 3 4 5 5 6 7 7 8 9 9 10 11 11 12