Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164876 报数 C++ Wrong Answer 1 MS 272 KB 388 2026-11-07 17:33:29

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int a[10001]={}; int main(){ int n,i=1,j=0; cin>>n; while(1){ j++; if (j==n)break; if (i==3){ i=1; a[j]=1; } i++; } for (int x=0;i<n;i++){ if (a[x]==0){ cout<<x+1; return 0; } } return 0; }


Run Info:

------Input------
512
------Answer-----
472
------Your output-----
1