| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41517 | Andrew宥杨 | 报数模拟 | C++ | Compile Error | 0 MS | 0 KB | 306 | 2024-02-21 18:16:55 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,cnt=0,j=0; cin>>a; int k=a; int b[a+1]; for(int i=1;i<=a;i++) b[i]=1; while(k){ if(cnt!=3)cnt++; if(cnt==3){ b[i]=0; k--; cnt=0; } j++; } for(int i=1;i<=a;i++){ if(b[i]) cout<<i; } return 0; }