#include<bits/stdc++.h>
using namespace std;
long long k;
char a[50][50];
int main(){
cin>>k;
cout<<"5 5\n";
for(int i=1;i<=5;i++){
for(int j=1;j<=5;j++){
a[i][j]='r';
}
}
for(int i=1;i<5;i++) a[i][5]='d';
a[5][5]='.';
//
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<=5;i++){
for(int j=1;j<=5;j++){
cout<<a[i][j];
}
cout<<endl;
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct! Your size: 5 |
2 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
3 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
4 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
5 |
Correct |
0 ms |
344 KB |
Correct! Your size: 5 |
6 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
7 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
8 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
9 |
Correct |
0 ms |
348 KB |
Correct! Your size: 5 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
1 ms |
344 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |