結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー matsu7874matsu7874
提出日時 2015-10-07 02:14:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 24,364 KB
平均クエリ数 3.70
最終ジャッジ日時 2023-09-23 21:50:10
合計ジャッジ時間 4,509 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
23,588 KB
testcase_01 AC 59 ms
24,180 KB
testcase_02 AC 60 ms
23,712 KB
testcase_03 AC 61 ms
23,512 KB
testcase_04 AC 65 ms
24,248 KB
testcase_05 AC 59 ms
24,284 KB
testcase_06 AC 61 ms
24,076 KB
testcase_07 AC 59 ms
23,716 KB
testcase_08 AC 61 ms
24,140 KB
testcase_09 AC 60 ms
23,764 KB
testcase_10 AC 61 ms
23,852 KB
testcase_11 AC 60 ms
23,980 KB
testcase_12 AC 60 ms
23,708 KB
testcase_13 AC 61 ms
24,140 KB
testcase_14 AC 60 ms
24,148 KB
testcase_15 AC 60 ms
23,624 KB
testcase_16 AC 61 ms
23,732 KB
testcase_17 AC 61 ms
24,364 KB
testcase_18 AC 60 ms
24,036 KB
testcase_19 AC 61 ms
24,320 KB
testcase_20 AC 62 ms
24,140 KB
testcase_21 AC 62 ms
23,748 KB
testcase_22 AC 62 ms
23,676 KB
testcase_23 AC 63 ms
24,024 KB
testcase_24 AC 62 ms
24,028 KB
testcase_25 AC 62 ms
24,096 KB
testcase_26 AC 62 ms
23,480 KB
testcase_27 AC 62 ms
23,580 KB
testcase_28 AC 61 ms
23,584 KB
testcase_29 AC 61 ms
23,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
N, K = map(int, input().split())
d = (N-1)%(K+1)

while True:
    print(d)
    sys.stdout.flush()
    d += K+1
    n = int(input())
    if n >= N:
        exit()
0