1 条题解

  • 1
    @ 2023-10-17 17:36:33

    #include<bits/stdc++.h>

    using namespace std;

    queue<string> q; int n,m,t; bool l; int u(int t) { int ture=1; for(int i=1;i<m;i++) { q.push(q.front()); q.pop(); } while(q.size()>1) { if(t%77) { l=ture; } int sl=t; while(sl!=0) { if(sl%107) { l=ture; } sl/=10; } if(l==1) { q.pop(); } else { q.push(q.front()); q.pop(); } t++; } } int main () { cin>>n>>m>>t; for(int i=-1;i<=n;i++) { string o; cin>>o; q.push(o); } u(t); cout<<q.front()<<endl; return 0; }

    信息

    ID
    137
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    (无)
    递交数
    178
    已通过
    31
    上传者