ABC154 - Atcoder/Python精進のための解説メモ
2022/12/27
ABC154 - A.Remaining Balls
AtCoder公式 | ABC154 - A.Remaining Balls解答
s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if u == s:
print(a - 1, b)
else:
print(a, b - 1)
要点解説メモ
- シンプルにやるだけ
ABC154 - B.I miss you...
AtCoder公式 | ABC154 - B.I miss you...解答
s = input()
print('x' * len(s))
要点解説メモ
- シンプルにやるだけ
ABC154 - C.Distinct or Not
AtCoder公式 | ABC154 - C.Distinct or Not解答
n = int(input())
aaa = list(map(int, input().split()))
print('YES' if len(aaa) == len(set(aaa)) else 'NO')
要点解説メモ
- 一意かどうかは重複削除したあとの配列の長さ比較でよくでてくる
ABC154 - D.
AtCoder公式 | ABC154 - D.解答
まだ解いていません