アールグレー特売所

ゲームやら競プロやらのメモ書き

2022-08-01から1ヶ月間の記事一覧

LINE Verda Programming Contest (AtCoder ABC 263) 参戦記

Dまでの4完。 Eはうまく整理しきれず。 atcoder.jp A問題 (Full House) def solve(): input = sys.stdin.readline INF = 10 ** 25 mod = 7 + 10 ** 9 A, B, C, D, E = map(int, input().split()) L = [A, B, C, D, E] N = dict() for l in L: if l in N: N[l…

AtCoder ABC 262 参戦記

今回はDまでの4完。Eは解説ACです。 あーレートの溶ける音ー。 atcoder.jp A問題 (World Cup) def solve(): input = sys.stdin.readline INF = 10 ** 25 mod = 7 + 10 ** 9 Y = int(input()) if Y % 4 == 0: print(Y + 2) elif Y % 4 == 1: print(Y + 1) eli…