Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
3240 罗炜翰 雇佣兵 C++ Time Limit Exceeded 0 1000 MS 256 KB 363 2024-12-22 17:23:19

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; }


Judgement Protocol: