#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pll pair<ll,ll>
#define pii pair<int,int>
#define fs first
#define sc second
#define tlll tuple<ll,ll,ll>
const int mxn = 62;
const ll B = 60;
ll tar;
string arr[mxn];
int main(){
ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
cin>>tar;
for(int i = 0;i<mxn;i++){
arr[i] = string(mxn,'d');
}
for(int i = 0;i<B;i++){
arr[i+1][i] = 'X';
}
for(int i = 0;i<B;i++){
arr[i][i] = 'd';
arr[i+2][i] = 'r';
}
for(int i = 0;i<mxn;i++){
arr[0][i] = arr[mxn-1][i] = 'r';
}
for(int i = 0;i<mxn;i++)arr[i][mxn-1] = 'd';
arr[mxn-1][mxn-1] = '.';
int c = 0;
tar--;
for(int i = mxn-2;i>=0;i--){
if((1ll<<c)&tar)arr[0][i] = 'X';
c++;
}
cout<<mxn<<' '<<mxn<<'\n';
for(int i = 0;i<mxn;i++){
cout<<arr[i]<<'\n';
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
2 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
3 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
4 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
5 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
6 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
7 |
Partially correct |
1 ms |
348 KB |
Partially Correct! Your size: 62 |
8 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
9 |
Partially correct |
0 ms |
344 KB |
Partially Correct! Your size: 62 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
2 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
3 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
4 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
5 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
6 |
Partially correct |
0 ms |
344 KB |
Partially Correct! Your size: 62 |
7 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |
8 |
Partially correct |
0 ms |
348 KB |
Partially Correct! Your size: 62 |