[파이썬][백준 10170번] NFC West vs North
1. 문제Permalink
[Bronze V] NFC West vs North - 10170Permalink
성능 요약Permalink
메모리: 30864 KB, 시간: 72 ms
분류Permalink
구현(implementation)
문제 설명Permalink
동혁이를 위해 NFC 서부와 북부 디비전 순위를 출력하는 프로그램을 작성하시오.
입력Permalink
없음
출력Permalink
예제와 같이 NFC 서부와 북부 디비전 순위를 출력한다.
출처: 백준, https://https://www.acmicpc.net/
2. 해결방법 시간복잡도Permalink
- 단순 코딩
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("""NFC West W L T | |
----------------------- | |
Seattle 13 3 0 | |
San Francisco 12 4 0 | |
Arizona 10 6 0 | |
St. Louis 7 9 0 | |
NFC North W L T | |
----------------------- | |
Green Bay 8 7 1 | |
Chicago 8 8 0 | |
Detroit 7 9 0 | |
Minnesota 5 10 1""") |
-
주석을 참고하면서 이해를 돕습니다.Permalink
4. 알고리즘 및 해설Permalink
- 단순 출력 문제로 여러 줄을 print()를 통해 출력한다.
5. 짚고 넘어가기Permalink
- print(“”” 넣고자 하는 값 “””) 함수를 통해 여러 줄을 동시에 출력한다.