結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー gorugo30gorugo30
提出日時 2021-03-17 23:54:51
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 163 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 95,372 KB
平均クエリ数 4.10
最終ジャッジ日時 2023-09-24 10:14:52
合計ジャッジ時間 6,742 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 113 ms
86,840 KB
testcase_03 RE -
testcase_04 AC 115 ms
86,792 KB
testcase_05 AC 116 ms
86,836 KB
testcase_06 AC 115 ms
87,264 KB
testcase_07 AC 116 ms
87,284 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 116 ms
86,940 KB
testcase_11 AC 117 ms
86,940 KB
testcase_12 AC 116 ms
87,360 KB
testcase_13 AC 115 ms
87,488 KB
testcase_14 RE -
testcase_15 AC 118 ms
87,316 KB
testcase_16 AC 116 ms
87,224 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 118 ms
87,116 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 116 ms
87,384 KB
testcase_23 AC 114 ms
87,112 KB
testcase_24 AC 116 ms
87,072 KB
testcase_25 AC 115 ms
87,348 KB
testcase_26 RE -
testcase_27 AC 114 ms
86,892 KB
testcase_28 AC 114 ms
87,420 KB
testcase_29 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
# ... 2 1 0 K ... 3 2 1
gr = (N - 1) % (K + 1)
x = gr
while x < N:
    print(x, flush = True)
    h = int(input())
    x += K + 1
0