Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
3361 D班-罗炜翰 雇佣兵 C++ 运行超时 0 1000 MS 252 KB 363 2024-12-26 20:36:24

Tests(0/4):


#include<iostream> using namespace std; int main() { int m,n,x,a; cin>>a>>n>>x; while (1) { if (x == 0) { break; } x -= 1; m = n - 1; while (1) { if (m > a) { m -= a; break; } } if (m > n) { n += m / n; } } cout<<n; }


测评信息: