結果
| 問題 | No.1829 Möbius Tunnelling |
| コンテスト | |
| ユーザー |
tnodino
|
| 提出日時 | 2022-02-04 21:37:18 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 2,000 ms |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 452 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-04 12:54:09 |
| 合計ジャッジ時間 | 3,663 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
def Right(a, b, x):
a += x
b += x
if a < N and a < b:
return True
else:
return False
def Left(a, b, x):
a -= x
b -= x
if 0 <= a and b < a:
return True
else:
return False
N = int(input())
a,b,c = map(int,input().split())
a -= 1
b -= 1
c -= 1
R = N - c
L = c + 1
if Right(a, b, R) or Left(a, b, L):
print('Yes')
else:
print('No')
tnodino