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 | 31 |
Tags
- SuNiNaTas
- 문자열
- CTF
- Digital Forensics
- Incognito
- 구현
- Text
- Network
- 백준
- Forensics
- N0Named
- 사칙연산
- Python
- misc
- C
- wargame
- Database
- 정렬
- Web Hacking
- 써니나타스
- Web
- cryptography
- writeup
- xcz.kr
- HackCTF
- 그리디 알고리즘
- 수학
- php
- 인코그니토
- MySQL
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 1075번 나누기 본문
[Baekjoon/Python3] 1075번 나누기
1075번: 나누기
첫째 줄에 N, 둘째 줄에 F가 주어진다. N은 100보다 크거나 같고, 2,000,000,000보다 작거나 같은 자연수이다. F는 100보다 작거나 같은 자연수이다.
www.acmicpc.net
n = int(input()) f = int(input()) n -= n % 100 while True: if n % f == 0: break else: n += 1 print(str(n)[-2:])
n = int(input()) f = int(input()) n -= n % 100 if n % f == 0: print('%02d' %(n % 100)) else: print('%02d' %((n + (f - n % f)) % 100))
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 1085번 직사각형에서 탈출 (0) | 2020.12.02 |
---|---|
[Baekjoon/Python3] 1076번 저항 (0) | 2020.12.02 |
[Baekjoon/Python3] 1065번 한수 (1) | 2020.12.02 |
[Baekjoon/Python3] 1037번 약수 (0) | 2020.12.02 |
[Baekjoon/Python3] 1032번 명령 프롬프트 (0) | 2020.12.02 |
Comments