結果

問題 No.998 Four Integers
ユーザー 👑 tamatotamato
提出日時 2020-02-28 21:21:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 71,492 KB
最終ジャッジ日時 2023-08-20 19:00:08
合計ジャッジ時間 3,654 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,356 KB
testcase_01 AC 78 ms
71,424 KB
testcase_02 AC 77 ms
71,392 KB
testcase_03 AC 77 ms
71,492 KB
testcase_04 AC 77 ms
71,232 KB
testcase_05 AC 76 ms
71,492 KB
testcase_06 AC 81 ms
71,340 KB
testcase_07 AC 76 ms
71,468 KB
testcase_08 AC 81 ms
71,244 KB
testcase_09 AC 77 ms
71,392 KB
testcase_10 AC 79 ms
71,208 KB
testcase_11 AC 78 ms
71,300 KB
testcase_12 AC 77 ms
71,244 KB
testcase_13 AC 77 ms
71,064 KB
testcase_14 AC 77 ms
71,092 KB
testcase_15 AC 78 ms
71,244 KB
testcase_16 AC 78 ms
71,392 KB
testcase_17 AC 78 ms
71,336 KB
testcase_18 AC 82 ms
71,356 KB
testcase_19 AC 81 ms
71,236 KB
testcase_20 AC 79 ms
71,308 KB
testcase_21 AC 80 ms
71,236 KB
testcase_22 AC 79 ms
71,340 KB
testcase_23 AC 81 ms
71,224 KB
testcase_24 AC 77 ms
71,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input = sys.stdin.readline

    A = list(map(int, input().split()))
    A.sort()
    if A[3] == A[2]+1 == A[1]+2 == A[0]+3:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()
0