백준2353 [백준/파이썬] 29918번 Leiutaja number üks -Coden0, m0 = map(int, input().split())res = 0for _ in range(5): n, m = map(int, input().split()) res = max(res, (n - n0) + 10 * (m - m0) + 1)print(res) 2024. 5. 17. [백준/파이썬] 31833번 온데간데없을뿐더러 -Coden = int(input())x = int(''.join(list(input().split())))y = int(''.join(list(input().split())))print(x if x 2024. 5. 16. [백준/파이썬] 31822번 재수강 -Codesubject = input()[:5]res = 0for _ in range(int(input())): retake = input()[:5] if subject == retake: res += 1print(res) 2024. 5. 15. [백준/파이썬] 31821번 학식 사주기 -Codeprice = [int(input()) for _ in range(int(input()))]res = 0for _ in range(int(input())): res += price[int(input()) - 1]print(res) 2024. 5. 14. [백준/파이썬] 29283번 Алекс и стейк -Coden = int(input())res, cnt, num = 0, 1, 0while n != num: res += 30 * cnt num += 1 if num != 0 and num % 5 == 0: cnt += 1print(res)파이썬으로 했으나 시간 초과 문제가 생겨서 pypy3로 제출했습니다. 2024. 5. 13. [백준/파이썬] 31831번 과민성 대장 증후군 -Coden, m = map(int, input().split())stress = list(map(int, input().split()))now_stress, res = 0, 0for el in stress: now_stress += el if now_stress = m: res += 1print(res) 2024. 5. 12. 이전 1 ··· 43 44 45 46 47 48 49 ··· 393 다음