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 |
Tags
- 정렬
- Web Hacking
- HackCTF
- 구현
- Text
- 그리디 알고리즘
- misc
- 수학
- xcz.kr
- N0Named
- C
- 써니나타스
- Incognito
- cryptography
- SuNiNaTas
- Python
- wargame
- 백준
- Network
- MySQL
- writeup
- 문자열
- 인코그니토
- Web
- php
- CTF
- Forensics
- Digital Forensics
- 사칙연산
- Database
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 18301번 Rats 본문
[Baekjoon/Python3] 18301번 Rats
18301번: Rats
To celebrate the Lunar New Year of the Rat, Douglas decides to count the number of rats living in his area. It is impossible for him to find all rats, as they tend to be well hidden. However, on the first day of the new year, Douglas manages to capture n1
www.acmicpc.net
import math
n1, n2, n12 = map(int, input().split())
print(math.floor((n1 + 1) * (n2 + 1) / (n12 + 1) - 1))
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 19698번 헛간 청약 (0) | 2020.12.08 |
---|---|
[Baekjoon/Python3] 18411번 試験 (0) | 2020.12.08 |
[Baekjoon/Python3] 18108번 1998년생인 내가 태국에서는 2541년생?! (0) | 2020.12.08 |
[Baekjoon/Python3] 17863번 FYI (0) | 2020.12.08 |
[Baekjoon/Python3] 17496번 스타후르츠 (0) | 2020.12.08 |
Comments