結果

問題 No.1829 Möbius Tunnelling
ユーザー ikomaikoma
提出日時 2022-02-04 22:01:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 71,576 KB
最終ジャッジ日時 2023-09-02 04:51:31
合計ジャッジ時間 4,196 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,372 KB
testcase_01 WA -
testcase_02 AC 73 ms
71,488 KB
testcase_03 WA -
testcase_04 AC 76 ms
71,248 KB
testcase_05 WA -
testcase_06 AC 74 ms
71,420 KB
testcase_07 AC 75 ms
71,272 KB
testcase_08 AC 72 ms
71,424 KB
testcase_09 WA -
testcase_10 AC 75 ms
71,232 KB
testcase_11 WA -
testcase_12 AC 74 ms
71,492 KB
testcase_13 AC 74 ms
71,524 KB
testcase_14 AC 74 ms
71,232 KB
testcase_15 AC 74 ms
71,108 KB
testcase_16 AC 74 ms
71,236 KB
testcase_17 AC 72 ms
71,244 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 72 ms
71,308 KB
testcase_21 AC 72 ms
71,368 KB
testcase_22 WA -
testcase_23 AC 74 ms
71,520 KB
testcase_24 AC 75 ms
71,196 KB
testcase_25 AC 74 ms
71,240 KB
testcase_26 AC 73 ms
71,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
a,b,c=map(int,input().split())

n2 = N*2

d = N-a

a += d
b = (b+d-1)%n2+1
c = (c+N+d-1)%n2+1

if c <= N and b > N:
    print("Yes")
else:
    print("No")
0