結果

問題 No.998 Four Integers
ユーザー stngstng
提出日時 2022-08-17 15:54:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 184 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 53,796 KB
最終ジャッジ日時 2024-04-15 05:30:13
合計ジャッジ時間 1,865 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,452 KB
testcase_01 AC 34 ms
52,708 KB
testcase_02 AC 35 ms
52,548 KB
testcase_03 AC 34 ms
53,096 KB
testcase_04 AC 34 ms
52,724 KB
testcase_05 AC 36 ms
52,460 KB
testcase_06 AC 35 ms
51,812 KB
testcase_07 AC 36 ms
52,336 KB
testcase_08 AC 35 ms
53,796 KB
testcase_09 AC 35 ms
52,468 KB
testcase_10 AC 34 ms
52,680 KB
testcase_11 AC 35 ms
53,140 KB
testcase_12 AC 35 ms
53,232 KB
testcase_13 AC 35 ms
53,568 KB
testcase_14 AC 34 ms
52,528 KB
testcase_15 AC 34 ms
53,308 KB
testcase_16 AC 35 ms
52,684 KB
testcase_17 AC 34 ms
52,464 KB
testcase_18 AC 35 ms
52,736 KB
testcase_19 AC 35 ms
52,560 KB
testcase_20 AC 34 ms
52,032 KB
testcase_21 AC 34 ms
53,284 KB
testcase_22 AC 36 ms
52,600 KB
testcase_23 AC 35 ms
53,236 KB
testcase_24 AC 35 ms
53,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = [int(i) for i in input().split()]
a.sort()

now = a[0]

for i in range(3):
    if now + 1 != a[i+1]:
        print("No")
        exit()
    else:
        now = a[i+1]
print("Yes")
0