結果
問題 |
No.998 Four Integers
|
ユーザー |
|
提出日時 | 2020-04-14 22:51:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 417 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-01 18:19:18 |
合計ジャッジ時間 | 1,770 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
INF = 10 ** 7 import sys input = sys.stdin.readline sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) from bisect import bisect_left def main(): x = list(map(int,input().split())) x.sort() flag = True for i in range(3): if x[i + 1] - x[i] != 1: flag = False if flag: print('Yes') else: print('No') if __name__ == '__main__': main()