本記事は、AtCoder Beginner Contest 455 (ABC455) に参加した際の、A〜D問題の復習と解答の備忘録です。コンテスト中に考えた解法の方針や、提出したPythonのコードについて整理しています。 A - 455 配点 : 100 点 問題文 整数 A,B,C が与えられます。 $A \neq B$ かつ $B=C$ であるならば Yes を、そうでないならば No を出力してください。 制約 1≤A,B,C≤9 入力される値はすべて整数 自分の解答の方針 そのまま $A \neq B$ かつ $B == C$ を判定。 提出したコード A, B, C = map(int, input().split()) if A != B and B == C: print("Yes") else: print("No") B - Spira
AtCoder Beginner Contest 455 参加記録と解答例 (A~D問題)
iwamutsu256·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.