Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

 
 
 
 
General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
162926301 Practice:
_BEAST_00_
791A - 11 C++20 (GCC 11-64) Runtime error on test 1 0 ms 0 KB 2022-07-05 21:12:17 2022-07-05 21:12:17
→ Source
#include  <bits/stdc++.h>
using namespace std;
int nxtyear(int a,int b,int count){
    count++;
    a*=3;
    b*=2;
    if(a>b){
        return count;
    }
    else{
        nxtyear(a,b,count);
    }
}
int main(){
    int a,b;
    cin >> a >> b ;
    int count = 0;
    cout << nxtyear(a,b,count) << endl;
    return 0;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details