제출 #364178

#제출 시각아이디문제언어결과실행 시간메모리
364178sobaCostinland (info1cup19_costinland)C++14
0 / 100
1 ms204 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...