結果

問題 No.2655 Increasing Strides
ユーザー titiatitia
提出日時 2024-03-01 21:53:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 416 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 44,440 KB
最終ジャッジ日時 2024-03-01 21:54:07
合計ジャッジ時間 15,774 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 385 ms
44,440 KB
testcase_01 AC 410 ms
44,440 KB
testcase_02 AC 388 ms
44,440 KB
testcase_03 AC 392 ms
44,440 KB
testcase_04 AC 402 ms
44,440 KB
testcase_05 AC 382 ms
44,440 KB
testcase_06 AC 382 ms
44,440 KB
testcase_07 AC 407 ms
44,440 KB
testcase_08 AC 401 ms
44,440 KB
testcase_09 AC 381 ms
44,440 KB
testcase_10 AC 406 ms
44,440 KB
testcase_11 AC 383 ms
44,440 KB
testcase_12 AC 407 ms
44,440 KB
testcase_13 AC 416 ms
44,440 KB
testcase_14 AC 383 ms
44,440 KB
testcase_15 AC 381 ms
44,440 KB
testcase_16 AC 412 ms
44,440 KB
testcase_17 AC 386 ms
44,440 KB
testcase_18 AC 384 ms
44,440 KB
testcase_19 AC 386 ms
44,440 KB
testcase_20 AC 378 ms
44,440 KB
testcase_21 AC 381 ms
44,440 KB
testcase_22 AC 379 ms
44,440 KB
testcase_23 AC 388 ms
44,440 KB
testcase_24 AC 381 ms
44,440 KB
testcase_25 AC 379 ms
44,440 KB
testcase_26 AC 389 ms
44,440 KB
testcase_27 AC 387 ms
44,440 KB
testcase_28 AC 380 ms
44,440 KB
testcase_29 AC 387 ms
44,440 KB
testcase_30 AC 380 ms
44,440 KB
testcase_31 AC 403 ms
44,440 KB
testcase_32 AC 383 ms
44,440 KB
testcase_33 AC 379 ms
44,440 KB
testcase_34 AC 383 ms
44,440 KB
testcase_35 AC 386 ms
44,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

OK=set()

for i in range(10**6):
    if i>=7 and i%4==3:
        OK.add(i)
    if i>=6 and (i%8==6 or i%8==0):
        OK.add(i)

if N in OK and N-1 in OK:
    print("Yes")
else:
    print("No")
0