結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー ynyn
提出日時 2015-08-01 15:54:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 24,492 KB
平均クエリ数 3.70
最終ジャッジ日時 2023-09-23 21:14:20
合計ジャッジ時間 3,957 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
24,356 KB
testcase_01 AC 56 ms
24,444 KB
testcase_02 AC 55 ms
24,272 KB
testcase_03 AC 55 ms
23,792 KB
testcase_04 AC 55 ms
24,072 KB
testcase_05 AC 55 ms
23,916 KB
testcase_06 AC 55 ms
23,860 KB
testcase_07 AC 55 ms
23,684 KB
testcase_08 AC 54 ms
23,972 KB
testcase_09 AC 56 ms
24,396 KB
testcase_10 AC 54 ms
24,268 KB
testcase_11 AC 55 ms
23,712 KB
testcase_12 AC 56 ms
23,964 KB
testcase_13 AC 54 ms
24,348 KB
testcase_14 AC 54 ms
24,260 KB
testcase_15 AC 56 ms
24,492 KB
testcase_16 AC 56 ms
24,252 KB
testcase_17 AC 58 ms
24,048 KB
testcase_18 AC 57 ms
24,424 KB
testcase_19 AC 58 ms
24,164 KB
testcase_20 AC 59 ms
24,196 KB
testcase_21 AC 57 ms
23,976 KB
testcase_22 AC 57 ms
23,872 KB
testcase_23 AC 55 ms
24,432 KB
testcase_24 AC 56 ms
24,152 KB
testcase_25 AC 55 ms
23,956 KB
testcase_26 AC 55 ms
24,092 KB
testcase_27 AC 54 ms
23,868 KB
testcase_28 AC 55 ms
24,040 KB
testcase_29 AC 54 ms
23,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

n, k = map(int, input().split())

start = (n-1) % (k+1)

i = 1
print(start)

while True :
	num = int(input())
	if num >= n:
		sys.exit()

	print(start + (k+1) * i)
	sys.stdout.flush()

	i += 1
0