| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 390239 | rainboy | 게임 (IOI13_game) | C11 | 2 ms | 332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "game.h"
#define R 100
#define C 100
long long gcd(long long a, long long b) {
return b == 0 ? a : gcd(b, a % b);
}
long long aa[R][C], r, c;
void init(int R_, int C_) {
r = R_, c = C_;
}
void update(int i, int j, long long x) {
aa[i][j] = x;
}
long long ans;
long long calculate(int i1, int j1, int i2, int j2) {
int i, j;
i2++, j2++, ans = 0;
for (i = i1; i < i2; i++)
for (j = j1; j < j2; j++)
ans = gcd(ans, aa[i][j]);
return ans;
}| # | 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... | ||||
