Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
3919 | A班-许锘林 | 雇佣兵 | C++ | 通过 | 100 | 0 MS | 268 KB | 273 | 2025-01-04 12:07:47 |
#include <bits/stdc++.h> using namespace std; int main() { int m; int n; int x; cin>>m>>n>>x; int t = 0; while(x >= 0) { if(t < m) { t += n; x--; } else if(t >= m) { n += m / n; t = 0; } } cout<<n<<endl; return 0; }