# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
795800 | Andrey | Costinland (info1cup19_costinland) | C++14 | 1 ms | 212 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 main()
{
ios_base::sync_with_stdio(NULL);
cin.tie(NULL);
cout.tie(NULL);
long long k,br = 2,y = 1,z;
cin >> k;
while(y < k) {
y*=6;
br+=2;
}
char ans[br][br];
for(long long i = 0; i < br; i++) {
for(long long j = 0; j < br; j++) {
ans[i][j] = '.';
}
}
for(long long i = 1; i < br-1; i+=2) {
ans[i][i] = 'X';
ans[i][i+1] = 'X';
ans[i+1][i] = 'X';
ans[i+1][i+1] = 'X';
ans[i+2][i] = 'r';
ans[i+2][i+1] = 'r';
ans[i][i+2] = 'd';
ans[i+1][i+2] = 'd';
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |