Submission #89008

#TimeUsernameProblemLanguageResultExecution timeMemory
89008nikaLuxury burrow (IZhO13_burrow)C++14
0 / 100
2 ms376 KiB
#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]) && (z[i][d]<c)){ 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 timeMemoryGrader output
Fetching results...