http://codeup.kr/problem.php?id=1165
Codeup 1165 - 축구의 신 1
xxxxxxxxxx
game_time, score = input().split()
game_time = int(game_time)
score = int(score)
if(game_time % 10 == 0):
final_score = score + int((90 - game_time) / 5)
else:
final_score = score + int((90 - game_time) / 5) + 1
print(final_score)
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
Codeup 1167 - 두 번째로 작은 수 (0) | 2018.12.23 |
---|---|
Codeup 1166 - 윤년 판별 (0) | 2018.12.23 |
Codeup 1164 - 터널 통과하기 1 (0) | 2018.12.22 |
Codeup 1163 - 당신의 사주를 봐 드립니다 2 (0) | 2018.12.21 |
Codeup 1162 - 당신의 사주를 봐 드립니다 1 (0) | 2018.12.21 |