5 条题解

  • -2
    @ 2025-7-14 17:27:25

    #include<bits/stdc++.h> using namespace std; int n,m,s,f,t; bool a[101]; int main() { cin>>n>>m; cout<<endl; for(t=1;t<=n;++t) a[t]=false; f=0; t=0; s=0; do { ++t; if(t==n+1) t+1; if(a[t]false)++s; if(sm) { s=0; cout<<t<<" "; a[t]=true; f++; } }while(f!=n); return 0; }

    信息

    ID
    274
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    43
    已通过
    9
    上传者