제출 #579144

#제출 시각아이디문제언어결과실행 시간메모리
579144VanillaVision Program (IOI19_vision)C++17
100 / 100
14 ms1804 KiB
#include <bits/stdc++.h> #include "vision.h" using namespace std; void construct_network(int H, int W, int K) { int op = 0; vector <int> row, col; vector <int> bits; vector <int> v; for (int i = 0; i < H; i++){ for (int j = 0; j < W; j++){ v.push_back(i * W + j); } bits.push_back(add_xor(v)); v = {bits.back()}; } for (int j = 0; j < W; j++){ for (int i = 0; i < H; i++){ v.push_back(i * W + j); } bits.push_back(add_xor(v)); v = {bits.back()}; } int last = bits.back(); vector <int> rs; for (int i = 0; i < 9; i++){ rs.push_back(add_xor(bits)); if (K & (1 << i)) rs[i] = add_not(rs[i]); vector <int> hl; int now = last; for (int i: bits) { hl.push_back(add_and({now, i})); now = add_xor({now, i}); } bits = hl; } add_not(add_or(rs)); }

컴파일 시 표준 에러 (stderr) 메시지

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:6:5: warning: unused variable 'op' [-Wunused-variable]
    6 | int op = 0;
      |     ^~
#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...