結果

問題 No.3041 なんとかのはなうらない
ユーザー tomarint2tomarint2
提出日時 2019-04-01 21:14:49
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 400 bytes
コンパイル時間 1,049 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 71,540 KB
最終ジャッジ日時 2023-08-17 13:37:33
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,252 KB
testcase_01 AC 69 ms
71,432 KB
testcase_02 AC 71 ms
71,476 KB
testcase_03 AC 70 ms
71,216 KB
testcase_04 AC 71 ms
71,060 KB
testcase_05 AC 69 ms
71,536 KB
testcase_06 AC 70 ms
71,336 KB
testcase_07 AC 70 ms
71,540 KB
testcase_08 AC 68 ms
71,300 KB
testcase_09 AC 67 ms
71,144 KB
testcase_10 AC 67 ms
71,540 KB
testcase_11 AC 67 ms
71,304 KB
testcase_12 AC 68 ms
71,236 KB
testcase_13 AC 68 ms
71,352 KB
testcase_14 AC 69 ms
71,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# ? 1 3 2 2 3 1 1
#  ^   ^   ^
#          4n+1
# 4n  枚の場合、初手3枚取ると、最後の1枚は後手が引かされる
# 4n+1枚の場合、初手1枚取ると、最後の1枚は先手が取れる
# 4n+2枚の場合、初手1枚取ると、最後の1枚は後手が引かされる
# 4n+3枚の場合、初手3枚取ると、最後の1枚は先手が取れる

N=int(input())
print('Yes')
0