0
0

More than 3 years have passed since last update.

AtCoder 第6回 ドワンゴからの挑戦状 予選 参戦記

Last updated at Posted at 2020-01-12

AtCoder 第6回 ドワンゴからの挑戦状 予選 参戦記

A - Falling Asleep

4分で突破. 書くだけ.

N = int(input())

total = 0
p = 0
d = {}
for _ in range(N):
    s, t = input().split()
    t = int(t)
    total += t
    d[s] = total
print(total - d[input()])

B - Fusing Slimes

敗退.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0