| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 89008 | nika | 호화 벙커 (IZhO13_burrow) | C++14 | 2 ms | 376 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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 time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
