Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
41591 yanghaowen 报数模拟 C++ Compile Error 0 MS 0 KB 535 2024-02-21 19:45:53

Tests(0/0):


#include<iostream> using namespace std; int main(){ bool a[605]; int n,j=0,k; cin>>n>>m; k=n; for(int i=1;i<=n;i++){ } while(1){ for(int i=1;i<=n;i++){ if(a[i]){ j++; if(j%3==0;){ a[i]=false; j=0; k--; if(k==0){ cout<<i; return 0; } } } } } }


Judgement Protocol: