結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 118 ms
87,500 KB
testcase_03 RE -
testcase_04 AC 116 ms
86,872 KB
testcase_05 AC 117 ms
87,572 KB
testcase_06 AC 117 ms
87,388 KB
testcase_07 AC 116 ms
86,824 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 116 ms
87,524 KB
testcase_11 AC 117 ms
87,408 KB
testcase_12 AC 119 ms
87,244 KB
testcase_13 AC 117 ms
87,628 KB
testcase_14 RE -
testcase_15 AC 119 ms
87,248 KB
testcase_16 AC 117 ms
87,164 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 117 ms
86,800 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 117 ms
87,048 KB
testcase_23 AC 116 ms
87,184 KB
testcase_24 AC 117 ms
87,304 KB
testcase_25 AC 116 ms
86,804 KB
testcase_26 RE -
testcase_27 AC 115 ms
86,828 KB
testcase_28 AC 116 ms
87,088 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