파이썬2192 [백준/파이썬] 9161번 Sir Bedavere’s Bogus Division Solutions -Codefor i in range(100, 1000): for j in range(100, 1000): if i % 111 == 0 and j % 111 == 0: continue if (i * (j % 100) == j * (i // 10)) and (i % 10 == j // 100): print(f"{i} / {j} = {i // 10} / {j % 100}") 2024. 9. 15. [백준/파이썬] 32209번 다음 달에 봐요 -Coderes = 0flag = Truefor _ in range(int(input())): n, xy = map(int, input().split()) res += xy if n == 1 else -xy if res 2024. 9. 14. [백준/파이썬] 32184번 디미고에 가고 싶어! -Codea, b = map(int, input().split())print((b + 1) // 2 - (a + 1) // 2 + 1) 2024. 9. 13. [백준/파이썬] 24807번 Math Homework -Codeb, c, d, l = map(int, input().split())cnt = 0for i in range(l + 1): if i * b > l: break; for j in range(l + 1): if i * b + j * c > l: break; for k in range(l + 1): if i * b + j * c + k * d > l: break; if i * b + j * c + k * d == l: print(f"{i} {j} {k}") cnt += 1if cnt == 0: print("impossible") 2024. 9. 12. [백준/파이썬] 13366번 Math Contest -Codefrom sys import stdinfor _ in range(int(stdin.readline())): num = list(map(int, list(stdin.readline().strip()))) res = sum(num) print("YES" if res % 9 == 0 else "NO") 2024. 9. 11. [백준/파이썬] 32215번 코드마스터 2024 -Coden, m, k = map(int, input().split())print(m * (k + 1)) 2024. 9. 10. 이전 1 ··· 23 24 25 26 27 28 29 ··· 366 다음