Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
121371 maoyu 舞林大会 C++ 通过 100 0 MS 260 KB 348 2024-01-21 17:09:17

Tests(10/10):


#include <bits/stdc++.h> using namespace std; queue <int> m,l; int main() { int male,lady,k;cin>>male>>lady>>k; for (int i=1;i<=male;i++)m.push(i); for (int i=1;i<=lady;i++)l.push(i); for (int i=1;i<=k-1;i++) { m.push(m.front());m.pop(); l.push(l.front());l.pop(); } cout<<m.front()<<' '<<l.front()<<endl; return 0; }


测评信息: