# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
134402 | arthurconmy | Game (IOI13_game) | C++14 | 2 ms | 376 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#ifndef ARTHUR_LOCAL
#include "game.h"
#endif
using namespace std;
using ll=long long;
ll grid[100][100];
int r,c;
void init(int r_r, int c_r)
{
r=r_r;
c=c_r;
}
void update(int p, int q, ll k)
{
grid[p][q]=k;
}
ll calculate(int p, int q, int u, int v)
{
ll cur_gcd = 0;
for(int i=p; i<=q; i++)
{
for(int j=u; j<=v; j++)
{
cur_gcd = __gcd(cur_gcd,grid[i][j]);
}
}
return cur_gcd;
}
Compilation message (stderr)
# | 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... |