結果

問題 No.998 Four Integers
ユーザー もぐら 3.0
提出日時 2023-11-13 20:31:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 164 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-09-26 03:24:48
合計ジャッジ時間 2,138 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D = map(int,input().split())
box = [A,B,C,D]
box.sort()

if box[1]-box[0]==1 and box[2]-box[1]==1 and box[3]-box[2]==1:
    print("Yes")
else:
    print("No")
0