Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
3240 | D班-罗炜翰 | 雇佣兵 | C++ | 运行超时 | 0 | 1000 MS | 256 KB | 363 | 2024-12-22 17:23:19 |
#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; }