답안 #422687

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
422687 2021-06-10T10:21:32 Z SSRS Vision Program (IOI19_vision) C++14
0 / 100
1 ms 332 KB
#include <bits/stdc++.h>
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int K){
  assert(H <= 30 && W <= 30);
  int cnt = H * W;
  vector<int> A;
  for (int x1 = 0; x1 < H; x1++){
    for (int y1 = 0; y1 < W; y1++){
      for (int x2 = 0; x2 < H; x2++){
        for (int y2 = 0; y2 < W; y2++){
          if (abs(x2 - x1) + abs(y2 - y1) == K){
            int a = x1 * H + y1;
            int b = x2 * H + y2;
            if (a < b){
              vector<int> id = {a, b};
              add_and(id);
              cnt++;
            }
          }
        }
      }
    }
  }
  vector<int> id;
  for (int i = H * W; i < cnt; i++){
    id.push_back(i);
  }
  add_or(id);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Runtime error 1 ms 332 KB Execution killed with signal 6
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -