| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 413842 | LouayFarah | 게임 (IOI13_game) | C++14 | 13102 ms | 9948 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
#include "game.h"
using namespace std;
vector<vector<long long>> grid;
vector<long long> em;
int r, c;
long long gcd2(long long a, long long b)
{
if(b==0)
return a;
return gcd2(b, a%b);
}
void init(int R, int C)
{
r = R;
c = C;
em.assign(c, 0);
grid.assign(r, em);
}
void update(int P, int Q, long long K)
{
grid[P][Q] = K;
}
long long calculate(int P, int Q, int U, int V)
{
long long res = grid[P][Q];
for(int i = P; i<=U; i++)
{
for(int j = Q; j<=V; j++)
{
res = gcd2(res, grid[i][j]);
}
}
return res;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
