Submission #29890

#TimeUsernameProblemLanguageResultExecution timeMemory
29890kavunGame (IOI13_game)C++14
10 / 100
13000 ms197332 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; int r,c; ll table[5000][5000]; long long gcd2(long long X, long long Y) { long long tmp; while (X != Y && Y != 0) { tmp = X; X = Y; Y = tmp % Y; } return X; } void init(int R, int C) { r = R; c = C; } void update(int P, int Q, long long K) { table[P][Q] = K; } long long calculate(int P, int Q, int U, int V) { ll gcd = 0; for(int i = P; i <= U; i++) for(int j = Q; j <= V; j++) gcd = gcd2(gcd,table[i][j]); return gcd; }

Compilation message (stderr)

grader.c: In function 'int main()':
grader.c:18:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
  int res;
      ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...