ABC191 - Atcoder/Python精進のための解説メモ
2021/04/12
ABC191 - A.Vanishing Pitch
AtCoder公式 | ABC191 - A.Vanishing Pitch解答
v, t, s, d = map(int, input().split())
print('No' if t <= d / v <= s else 'Yes')
要点メモ
- こういう時、比較演算子を連結できるpythonは良いよね
ABC191 - B.Remove It
AtCoder公式 | ABC191 - B.Remove It解答
n, x = map(int, input().split())
aaa = list(map(int, input().split()))
print(*[a for a in aaa if a != x])
要点メモ
- popとかしなくても、条件に合っているリストを作って、普通に出力すれば良さそう
- print(*[])でリストをそれぞれ出力できるのは便利なので、覚えておくの大事
ABC191 - C.
AtCoder公式 | ABC191 - C.解答
まだ解いてません
要点メモ
ABC191 - D.
AtCoder公式 | ABC191 - D.解答
まだ解いてません