結果
| 問題 | No.998 Four Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-14 22:51:26 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 1,000 ms |
| + 671µs | |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-07 23:29:20 |
| 合計ジャッジ時間 | 2,340 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()