結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー ktshunktshun
提出日時 2015-08-03 16:18:02
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 308 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 24,348 KB
平均クエリ数 3.40
最終ジャッジ日時 2023-09-23 05:36:54
合計ジャッジ時間 3,858 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
23,664 KB
testcase_01 AC 56 ms
23,640 KB
testcase_02 WA -
testcase_03 AC 57 ms
24,252 KB
testcase_04 AC 58 ms
23,412 KB
testcase_05 AC 60 ms
24,048 KB
testcase_06 AC 57 ms
24,060 KB
testcase_07 AC 56 ms
23,412 KB
testcase_08 AC 57 ms
24,264 KB
testcase_09 WA -
testcase_10 AC 57 ms
23,964 KB
testcase_11 AC 57 ms
24,276 KB
testcase_12 AC 57 ms
24,300 KB
testcase_13 AC 57 ms
24,036 KB
testcase_14 AC 57 ms
23,412 KB
testcase_15 AC 58 ms
23,664 KB
testcase_16 AC 58 ms
23,544 KB
testcase_17 AC 58 ms
23,940 KB
testcase_18 WA -
testcase_19 AC 57 ms
23,832 KB
testcase_20 AC 57 ms
24,036 KB
testcase_21 AC 58 ms
23,652 KB
testcase_22 AC 60 ms
24,216 KB
testcase_23 AC 58 ms
23,448 KB
testcase_24 AC 57 ms
24,336 KB
testcase_25 AC 60 ms
24,324 KB
testcase_26 AC 56 ms
24,264 KB
testcase_27 AC 56 ms
23,400 KB
testcase_28 AC 56 ms
24,348 KB
testcase_29 AC 57 ms
23,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import sys

if __name__ == "__main__":
	n,k = map(int,raw_input().split())
	rest = n % (k+1)
	if rest == 1:
		now = 0
	else:
		now = rest - 1
	print now
	sys.stdout.flush()
	while True:
		opponent = input()
		if opponent >= n:
			exit()
		now += (k+1)
		print now
		sys.stdout.flush()
0