답안 #422820

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
422820 2021-06-10T12:46:57 Z SSRS Vision Program (IOI19_vision) C++14
14 / 100
12 ms 1680 KB
#include <bits/stdc++.h>
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int K){
  assert(K == 1);
  int mx = H + W - 1;
  vector<vector<int>> id1(mx), id2(mx);
  for (int i = 0; i < H; i++){
    for (int j = 0; j < W; j++){
      id1[i + j].push_back(i * W + j);
      id2[i - j + (W - 1)].push_back(i * W + j);
    }
  }
  vector<int> a(mx), b(mx);
  for (int i = 0; i < mx; i++){
    a[i] = add_or(id1[i]);
    b[i] = add_or(id2[i]);
  }
  vector<int> a2(mx - 1), b2(mx - 1);
  for (int i = 0; i < mx - 1; i++){
    a2[i] = add_and({a[i], a[i + 1]});
    b2[i] = add_and({b[i], b[i + 1]});
  }
  int X = add_or(a2);
  int Y = add_or(b2);
  add_and({X, Y});
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 332 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 1680 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 2 ms 332 KB Output is correct
4 Correct 2 ms 460 KB Output is correct
5 Correct 1 ms 332 KB Output is correct
6 Correct 1 ms 332 KB Output is correct
7 Correct 6 ms 972 KB Output is correct
8 Correct 6 ms 972 KB Output is correct
9 Correct 11 ms 1616 KB Output is correct
10 Correct 0 ms 204 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Runtime error 1 ms 332 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -