이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |