#include <bits/stdc++.h>
using namespace std;
int main()
{
int k;
cin >> k;
if(k==3){
cout << 2 << " " << 3 << "\n";
cout << "XXd\n";
cout << "rr.\n";
}
if(k==4){
cout << 2 << " " << 4 << "\n";
cout << "XXXd\n";
cout << "rrr.\n";
}
if(k==5){
cout << 2 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "rrrr.\n";
}
if(k==6){
cout << 3 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==7){
cout << 4 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X...d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==8){
cout << 5 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X...d\n";
cout << "X...d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==9){
cout << 5 << " " << 5 << "\n";
cout << "X.XXd\n";
cout << "X.X.d\n";
cout << "X...d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==10){
cout << 5 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X.X.d\n";
cout << "X...d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==11)
{
cout << 4 << " " << 4 << "\n";
cout << "XXXd\n";
cout << ".XXd\n";
cout << ".XXd\n";
cout << "rrr.\n";
}
if(k==12)
{
cout << 5 << " " << 4 << "\n";
cout << "XXXd\n";
cout << ".XXd\n";
cout << ".XXd\n";
cout << "X..d\n";
cout << "rrr.\n";
}
if(k==13)
{
cout << 5 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << ".XX.d\n";
cout << ".XX.d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==14)
{
cout << 4 << " " << 4 << "\n";
cout << "XX.d\n";
cout << "XXXd\n";
cout << ".XXd\n";
cout << "rrr.\n";
}
if(k==15)
{
cout << 5 << " " << 4 << "\n";
cout << "XX.d\n";
cout << "XXXd\n";
cout << ".XXd\n";
cout << "X..d\n";
cout << "rrr.\n";
}
if(k==16)
{
cout << 5 << " " << 5 << "\n";
cout << "XX.Xd\n";
cout << "XXX.d\n";
cout << ".XX.d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
if(k==17)
{
cout << 4 << " " << 4 << "\n";
cout << "XX.d\n";
cout << "XXXd\n";
cout << "XXXd\n";
cout << "rrr.\n";
}
if(k==18)
{
cout << 5 << " " << 5 << "\n";
cout << "XX.Xd\n";
cout << "XXX.d\n";
cout << ".XX.d\n";
cout << "X..Xd\n";
cout << "rrrr.\n";
}
if(k==19)
{
cout << 5 << " " << 5 << "\n";
cout << "XX.Xd\n";
cout << "XXX.d\n";
cout << "XXX.d\n";
cout << "X...d\n";
cout << "rrrr.\n";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Correct! Your size: 3 |
2 |
Correct |
1 ms |
204 KB |
Correct! Your size: 4 |
3 |
Correct |
1 ms |
204 KB |
Correct! Your size: 5 |
4 |
Correct |
1 ms |
204 KB |
Correct! Your size: 5 |
5 |
Correct |
1 ms |
204 KB |
Correct! Your size: 5 |
6 |
Correct |
1 ms |
204 KB |
Correct! Your size: 5 |
7 |
Correct |
1 ms |
204 KB |
Correct! Your size: 5 |
8 |
Correct |
1 ms |
204 KB |
Correct! Your size: 4 |
9 |
Correct |
1 ms |
252 KB |
Correct! Your size: 5 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |