Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
121158 林泽豪 舞林大会 C++ 解答错误 20 0 MS 248 KB 186 2024-01-21 15:36:02

Tests(2/10):


#include<bits/stdc++.h> using namespace std; int main(){ int m,n,k,j=0,l=0; cin>>n>>m>>k; for(int i=1;i<=k;i++){ if(++j>m)j=1; if(++l>n)l=1; } cout<<j<<' '<<l; }


测评信息: