結果

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

ソースコード

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