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;
long long k;
char a[50][50];
int main(){
cin>>k;
cout<<"49 49\n";
for(int i=1;i<=49;i++){
for(int j=1;j<=49;j++){
a[i][j]='r';
}
}
for(int i=1;i<49;i++) a[i][49]='d';
a[49][49]='.';
//
for(int i=1;(1<<i)<=k;i++){
a[i][i]='X';
a[i][i+1]='d';
if((1<<(i-1))&k) a[i][i+1]='X';
}
//
for(int i=1;i<=49;i++){
for(int j=1;j<=49;j++){
cout<<a[i][j];
}
cout<<endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |