# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
685256 | heeheeheehaaw | Costinland (info1cup19_costinland) | C++17 | 1 ms | 340 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>
#define int long long
using namespace std;
char a[1005][1005];
signed main()
{
int k;
cin>>k;
int l = ceil(log2(k)) + 1;
cout<<l<<" "<<l<<'\n';
for(int i = 1; i <= l; i++)
for(int j = 1; j <= l; j++)
a[i][j] = '.';
for(int i = 1; i < l; i++)
{
a[i][i] = 'X';
a[i - 1][i] = 'd';
a[i][i - 1] = 'r';
}
for(int i = 1; i < l - 1; i++)
{
if(((1 << i) & k) == false)
continue;
a[i + 1][i + 2] = 'X';
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |