Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
2542 D班-陈颖钧 太弱的好哥们 C++ 通过 100 1 MS 260 KB 248 2024-12-15 17:25:53

Tests(7/7):


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


测评信息: