# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
100310 | tpoppo | Konj (COCI19_konj) | C++14 | 63 ms | 1144 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int n;
using pii = pair<int,int>;
vector<pii> rot = {{0,-1},{0,1},{-1,0},{1,0}};
char mat[400][400];
bool dir[400][400][4];
void draw_point(int a,int b,int c,int d){
if(d == b){
for(int x = min(a,c);x<=max(a,c);x++){
mat[x][b] = '@';
if(x != min(a,c)) dir[x][b][2] = true;
if(x != max(a,c)) dir[x][b][3] = true;
}
}
if(a == c){
for(int y = min(b,d);y<=max(b,d);y++){
mat[a][y] = '@';
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |