Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
121361 陈馨逸 舞林大会 C++ 通过 100 0 MS 264 KB 356 2024-01-21 17:03:55

Tests(10/10):


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


测评信息: