Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- HackCTF
- C
- 구현
- Web
- CTF
- N0Named
- 그리디 알고리즘
- Text
- SuNiNaTas
- 문자열
- 수학
- php
- 정렬
- 백준
- Forensics
- Digital Forensics
- Python
- Web Hacking
- MySQL
- cryptography
- xcz.kr
- 사칙연산
- 써니나타스
- wargame
- Database
- Network
- writeup
- 인코그니토
- misc
- Incognito
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 15439번 Vera and Outfits 본문
Programming/Python & Data Structures
[Baekjoon/Python3] 15439번 Vera and Outfits
HooNeee 2020. 12. 8. 16:26[Baekjoon/Python3] 15439번 Vera and Outfits
15439번: Vera and Outfits
Vera owns N tops and N pants. The i-th top and i-th pants have colour i, for 1 ≤ i ≤ N, where all N colours are different from each other. An outfit consists of one top and one pants. Vera likes outfits where the top and pants are not the same colour.
www.acmicpc.net
n = int(input())
print(n * (n - 1))
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 15596번 정수 N개의 합 (0) | 2020.12.08 |
---|---|
[Baekjoon/Python3] 15552번 빠른 A+B (0) | 2020.12.08 |
[Baekjoon/Python3] 14928번 큰 수 (BIG) (0) | 2020.12.08 |
[Baekjoon/Python3] 14918번 더하기 (0) | 2020.12.08 |
[Baekjoon/Python3] 14916번 거스름돈 (0) | 2020.12.08 |