# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
588001 | 2022-07-02T16:00:02 Z | ogibogi2004 | Vision Program (IOI19_vision) | C++14 | 16 ms | 1364 KB |
#include "vision.h" #include<bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { vector<int>diag1,diag2; for(int s=0;s<H+W-1;s++) { vector<int>v; for(int i=0;i<H;i++) { for(int j=0;j<W;j++) { if(i+j==s)v.push_back(i*W+j); } } diag1.push_back(add_or(v)); } for(int s=-(W-1);s<H-1;s++) { vector<int>v; for(int i=0;i<H;i++) { for(int j=0;j<W;j++) { if(i-j==s)v.push_back(i*W+j); } } diag2.push_back(add_or(v)); } vector<int>distsK,distsMoreThanK; for(int i=0;i<diag1.size()-K;i++) { distsK.push_back(add_and({diag1[i],diag1[i+K]})); for(int j=i+K+1;j<diag1.size();j++) { distsMoreThanK.push_back(add_and({diag1[i],diag1[j]})); } } add_and({add_not(add_or(distsMoreThanK)),add_or(distsK)}); }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | WA in grader: Instruction with no inputs |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | WA in grader: Instruction with no inputs |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | WA in grader: Instruction with no inputs |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | WA in grader: Instruction with no inputs |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 1104 KB | WA in grader: Too many instructions |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | WA in grader: Instruction with no inputs |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 16 ms | 1364 KB | WA in grader: Too many instructions |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 0 ms | 212 KB | WA in grader: Instruction with no inputs |
3 | Halted | 0 ms | 0 KB | - |