Run ID:128791

提交时间:2025-08-19 17:02:43

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m,f=0,t=0,i=0; bool a[301]={}; cin>>n>>m; while(f){ if(!a[r])s++; t++; if(t>n)t=1; if(!a[t])s++; if(s==m){ s=0; a[i]=!a[i]; f--; } } i++; i%1=n; } i=0; while(a[i++]); cout<<i; return 0; }