[파이썬][백준 9654번] 나부 함대 데이터
1. 문제Permalink
[Bronze V] 나부 함대 데이터 - 9654Permalink
성능 요약Permalink
메모리: 30860 KB, 시간: 68 ms
분류Permalink
구현(implementation)
문제 설명Permalink
나부 행성의 함대 정보를 출력하는 프로그램을 작성하시오.
입력Permalink
Empty
출력Permalink
나부 행성의 함대의 정보를 아래와 예제 출력과 같은 표로 출력한다.
처음 두 열의 너비는 문자 15개, 세 번째 열은 11개, 마지막 열의 너비는 10개이다.
출처: 백준, https://https://www.acmicpc.net/
2. 해결방법 시간복잡도Permalink
- 단순 코딩 O(1)
3. 문제 해결 및 코드Permalink
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("""SHIP NAME CLASS DEPLOYMENT IN SERVICE | |
N2 Bomber Heavy Fighter Limited 21 | |
J-Type 327 Light Combat Unlimited 1 | |
NX Cruiser Medium Fighter Limited 18 | |
N1 Starfighter Medium Fighter Unlimited 25 | |
Royal Cruiser Light Combat Limited 4 """) |
-
주석을 참고하면서 이해를 돕습니다.Permalink
4. 알고리즘 및 해설Permalink
- 문제에서 제시한 출력문을 출력해준다.