Submission #134407

#TimeUsernameProblemLanguageResultExecution timeMemory
134407arthurconmyGame (IOI13_game)C++14
10 / 100
3 ms660 KiB
#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; for(int i=0; i<100; i++) { for(int j=0; j<100; j++) { grid[i][j]=0; } } } 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<=u; i++) { for(int j=q; j<=v; j++) { //cout << i << " " << j << endl; cur_gcd = __gcd(cur_gcd,grid[i][j]); } } #ifdef ARTHUR_LOCAL cout << cur_gcd << endl; #endif return cur_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...