Search
Duplicate
๐Ÿฅ‰

์‹œํ—˜๊ฐ๋…

์ฃผ์ฐจ
๋ฌธ์ œ๋ฒˆํ˜ธ
13458
์–ธ์–ด
Python
ํ‹ฐ์–ด
๋ธŒ๋ก ์ฆˆ
์œ ํ˜•
์ˆ˜ํ•™
nj_Blog
O
nj_์ƒํƒœ
์™„๋ฃŒ
์ดํ•ด๋„
ํ’€์ด
์‚ฌ๋žŒ
์ดํ•ด๋„ 2
13 more properties

๋ฌธ์ œ๋งํฌ

https://www.acmicpc.net/problem/13458

์ฝ”๋“œ ์ œ์ถœ ๊ธฐ๋ก (๋ฉ”๋ชจ๋ฆฌ ๋ฐ ์‹œ๊ฐ„)

์ œ์ถœ ๋‚ ์งœ

@4/22/2021

๋ฉ”๋ชจ๋ฆฌ

245340 KB

์‹œ๊ฐ„

420 ms

๋ฉ”๋ชจ

โ€ข
์‚ผ์„ฑ sw ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ๊ธฐ์ถœ๋ฌธ์ œ

๋ฌธ์ œํ’€์ด

student[i] ๋กœ ์ ‘๊ทผํ•˜๋ฉด ์˜ค๋ฅ˜ (์ด์œ ๋Š”...๋ชจ๋ฅด๊ฒ ์Œ)

Code

N = int(input()) student = list(map(int, input().split())) B, C = map(int, input().split()) answer = 0 for s in student: s -= B answer += 1 if s > 0: answer += s // C if s % C != 0: answer += 1 print(answer)
Python
๋ณต์‚ฌ