티스토리챌린지21 [백준/파이썬] 32652번 아카라카 2 -Coden = int(input())res = "AKARAKA" + "RAKA" * (n - 1)print(res) 2024. 11. 15. [백준/파이썬] 18964번 Questionnaire -Coden = int(input())a_list = map(int, input().split())print(1, 0) 2024. 11. 14. [백준/파이썬] 32068번 보물 찾기 -Codefor _ in range(int(input())): l, r, s = map(int, input().split()) l_res, r_res = (s - l) * 2 + 1, (r - s) * 2 print(l_res if l_res 2024. 11. 13. [백준/파이썬] 32651번 인간은 무엇인가 -Coden = int(input())print("Yes" if n % 2024 == 0 and n 2024. 11. 12. [백준/파이썬] 32642번 당구 좀 치자 제발 -Coden = int(input())weather = list(map(int, input().split()))now, res = 0, 0for el in weather: if el == 1: now += 1 else: now -= 1 res += nowprint(res) 2024. 11. 11. [백준/파이썬] 29965번 Average scores -Codefrom sys import stdininput = stdin.readlinen = int(input())m_total, j_total = 0, 0m_cnt, j_cnt = 0, 0m_res, j_res = 0, 0for _ in range(n): a, b = input().split() b = int(b) if a == "M": m_total += b m_cnt += 1 else: j_total += b j_cnt += 1if m_cnt != 0: m_res = m_total / m_cntif j_cnt != 0: j_res = j_total / j_cntif m_res j_res: print('M')el.. 2024. 11. 10. 이전 1 2 3 4 다음