Submission #89005

# Submission time Handle Problem Language Result Execution time Memory
89005 2018-12-10T08:07:29 Z nika Luxury burrow (IZhO13_burrow) C++14
0 / 100
2 ms 504 KB
#include <bits/stdc++.h>

using namespace std;
long long int z[1000][1000],a,b,c,d,e,f=1,g=0,h,i;
int main()
{
    cin>>a>>b>>c;
    for(i=1;i<=a;i++){
        for(d=1;d<=b;d++){
            cin>>z[i][d];
            if(f<=z[i][d]){
                f=z[i][d];
        }
    }}
    i=1;
    h=f;
    while(f<c){
        f=f*i;
        i++;
        if(f<c){
            f=h;
        }
    }
    cout<<i-1<<" "<<f;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 504 KB Output isn't correct
2 Halted 0 ms 0 KB -