結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー pluto77pluto77
提出日時 2016-09-16 08:54:24
言語 Python2
(2.7.18)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 566 ms
コンパイル使用メモリ 6,732 KB
実行使用メモリ 24,408 KB
平均クエリ数 3.70
最終ジャッジ日時 2023-09-24 00:33:04
合計ジャッジ時間 3,415 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
24,408 KB
testcase_01 AC 45 ms
23,640 KB
testcase_02 AC 48 ms
23,520 KB
testcase_03 AC 43 ms
23,484 KB
testcase_04 AC 43 ms
23,388 KB
testcase_05 AC 42 ms
23,352 KB
testcase_06 AC 43 ms
23,784 KB
testcase_07 AC 43 ms
23,808 KB
testcase_08 AC 43 ms
23,640 KB
testcase_09 AC 43 ms
23,520 KB
testcase_10 AC 43 ms
23,316 KB
testcase_11 AC 42 ms
24,324 KB
testcase_12 AC 43 ms
23,496 KB
testcase_13 AC 47 ms
23,616 KB
testcase_14 AC 43 ms
23,988 KB
testcase_15 AC 44 ms
23,964 KB
testcase_16 AC 44 ms
24,336 KB
testcase_17 AC 43 ms
23,364 KB
testcase_18 AC 45 ms
23,352 KB
testcase_19 AC 44 ms
24,228 KB
testcase_20 AC 43 ms
24,276 KB
testcase_21 AC 44 ms
23,808 KB
testcase_22 AC 43 ms
23,424 KB
testcase_23 AC 42 ms
23,640 KB
testcase_24 AC 45 ms
23,328 KB
testcase_25 AC 46 ms
23,604 KB
testcase_26 AC 44 ms
23,352 KB
testcase_27 AC 43 ms
23,520 KB
testcase_28 AC 45 ms
23,508 KB
testcase_29 AC 42 ms
23,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_257
import sys

n,k=map(int,raw_input().split())
a=(n-1)%(k+1)
print a
sys.stdout.flush()
i=1
while True:
 temp=int(raw_input())
 if temp>=n:
  sys.exit()
 res=a+(k+1)*i
 print res
 sys.stdout.flush()
 i+=1
0