Submission #599298

#TimeUsernameProblemLanguageResultExecution timeMemory
599298FatihSolakVision Program (IOI19_vision)C++17
8 / 100
1 ms300 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; int h,w,k; int get_pos(int x,int y){ return x*w + y; } void construct_network(int H, int W, int K) { h = H; w = W; k = K; int cnt = h*w; vector<int> candidates; for(int i = 0;i<=min(h-1,k);i++){ if(0 <= k-i && k-i < w){ add_and({get_pos(i,k-i)}); candidates.push_back(cnt++); } } add_or(candidates); int answer = cnt++; }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:21:9: warning: unused variable 'answer' [-Wunused-variable]
   21 |     int answer = cnt++;
      |         ^~~~~~
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...