답안 #315122

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
315122 2020-10-22T02:53:16 Z Seanliu Costinland (info1cup19_costinland) C++14
0 / 100
1 ms 204 KB
#include <iostream>
using namespace std;

int D;

int main(){
	cin >> D;
	if(D == 3){
		cout << "3 3\nrXd\n.Xd\nrr.\n";
	} else if(D == 4){
		cout << "3 3\nXXd\nX.d\nrr.\n";
	} else if(D == 5){
		cout << "5 5\nXXXXd\n....d\n....d\n....d\nrrrr.\n";
	} else if(D == 6){
		cout << "5 5\nXXXXd\nX...d\n....d\n....d\nrrrr.\n";
	} else if(D == 7){
		cout << "5 5\nXXXXd\nX...d\nX...d\n....d\nrrrr.\n";
	} else if(D == 8){
		cout << "5 5\nXXXXd\nX...d\nX...d\nX...d\nrrrr.\n";
	} else if(D == 9){
		cout << "5 5\nXXX.d\n.XX..d\nX...d\nX...d\nrrrr.\n";
	} else if(D == 10){
		cout << "5 5\nXXX.d\nXXX.d\n....d\n....d\nrrrr.\n";	
	} else if(D == 11){
		cout << "5 5\nXXX.d\nXXX.d\nX...d\n....d\nrrrr.\n";	
	} else if(D == 12){
		cout << "5 5\nXXX.d\nXXX.d\nX...d\nX...d\nrrrr.\n";	
	} else if(D == 13){
		cout << "5 5\nXXXXd\n.XXXd\n..X.d\n....d\nrrrr.\n";	
	} else if(D == 14){
		cout << "5 5\nXXXXd\n.XXXd\n...Xd\n....d\nrrrr.\n";	
	} else if(D == 15){
		cout << "5 5\nXXXXd\n.XXXd\n...Xd\nX...d\nrrrr.\n";	
	} else if(D == 16){
		cout << "5 5\nXXXXd\n.XXXd\n.X.Xd\n....d\nrrrr.\n";	
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Correct! Your size: 3
2 Correct 1 ms 204 KB Correct! Your size: 3
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: 5
9 Incorrect 1 ms 204 KB Unexpected end of file - int32 expected
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -