Official
B - スロット/Slot Editorial
by
B - スロット/Slot Editorial
by
nok0
\(A,B,C\) を整数として入力で受け取り、\(A=B\) かつ \(B=C\) かを判定すればよいです。複数の整数を受け取るには、例えば Python では map(int, input().split())
により行うことができます。
実装例も参考にしてください。
実装例(C++):
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a == b and b == c) cout << "Yes\n";
else cout << "No\n";
}
実装例(Python):
a, b, c = map(int, input().split())
print("Yes" if a == b == c else "No")
posted:
last update: