結果

問題 No.998 Four Integers
ユーザー AkioSuzuta
提出日時 2020-03-04 22:37:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 249 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-11-30 23:19:59
合計ジャッジ時間 2,448 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

num_list = list(map(int, input().split()))
num_list = sorted(num_list)

is_succsess = True

for i in range(3):
    if not num_list[i]+1==num_list[i+1]:
        is_succsess = False
        break

if is_succsess:
    print("Yes")
else:
    print("No")
0