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;
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....\n";
cout << "rrrr.\n";
}
if(k==7){
cout << 4 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X....\n";
cout << "X....\n";
cout << "rrrr.\n";
}
if(k==8){
cout << 5 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X....\n";
cout << "X....\n";
cout << "X....\n";
cout << "rrrr.\n";
}
if(k==9){
cout << 5 << " " << 5 << "\n";
cout << "X.XXd\n";
cout << "X.X..\n";
cout << "X....\n";
cout << "X....\n";
cout << "rrrr.\n";
}
if(k==10){
cout << 5 << " " << 5 << "\n";
cout << "XXXXd\n";
cout << "X.X..\n";
cout << "X....\n";
cout << "X....\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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |