Notice
Recent Posts
Recent Comments
Link
250x250
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

피너클의 it공부방

백준 9654 나부 함대 데이터 (c++) : 피너클 본문

백준

백준 9654 나부 함대 데이터 (c++) : 피너클

피너클 2022. 5. 12. 23:36
728x90
반응형

https://www.acmicpc.net/problem/9654

 

9654번: 나부 함대 데이터

나부 행성의 함대의 정보를 아래와 예제 출력과 같은 표로 출력한다. 처음 두 열의 너비는 문자 15개, 세 번째 열은 11개, 마지막 열의 너비는 10개이다.

www.acmicpc.net

그냥 출력하면 된다.

#include <iostream>

using namespace std;

int main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	cout << 
		"SHIP NAME      CLASS          DEPLOYMENT IN SERVICE\n"
		"N2 Bomber      Heavy Fighter  Limited    21        \n"
		"J-Type 327     Light Combat   Unlimited  1         \n"
		"NX Cruiser     Medium Fighter Limited    18        \n"
		"N1 Starfighter Medium Fighter Unlimited  25        \n"
		"Royal Cruiser  Light Combat   Limited    4" << endl;
}

전체코드다.

728x90
반응형
Comments