結果

問題 No.998 Four Integers
ユーザー otsunekootsuneko
提出日時 2021-05-14 10:02:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 160 bytes
コンパイル時間 1,617 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 53,240 KB
最終ジャッジ日時 2024-04-08 23:47:46
合計ジャッジ時間 2,233 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,260 KB
testcase_01 AC 37 ms
53,240 KB
testcase_02 AC 35 ms
51,992 KB
testcase_03 AC 35 ms
51,956 KB
testcase_04 AC 38 ms
51,648 KB
testcase_05 AC 38 ms
51,976 KB
testcase_06 AC 37 ms
53,104 KB
testcase_07 AC 38 ms
51,924 KB
testcase_08 AC 38 ms
52,240 KB
testcase_09 AC 34 ms
52,384 KB
testcase_10 AC 38 ms
52,092 KB
testcase_11 AC 35 ms
51,972 KB
testcase_12 AC 36 ms
52,168 KB
testcase_13 AC 34 ms
52,436 KB
testcase_14 AC 36 ms
52,056 KB
testcase_15 AC 37 ms
52,692 KB
testcase_16 AC 35 ms
52,448 KB
testcase_17 AC 35 ms
53,152 KB
testcase_18 AC 35 ms
53,028 KB
testcase_19 AC 35 ms
51,996 KB
testcase_20 AC 35 ms
52,996 KB
testcase_21 AC 36 ms
52,296 KB
testcase_22 AC 34 ms
52,824 KB
testcase_23 AC 35 ms
51,992 KB
testcase_24 AC 34 ms
52,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l = list(map(int,input().split()))
l.sort()

for i in range(len(l)-1):
    if l[i+1]-l[i] != 1:
        print("No")
        break
else:
    print("Yes")
0