結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー takakin
提出日時 2020-05-28 21:36:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,616 KB
平均クエリ数 3.40
最終ジャッジ日時 2024-07-17 03:46:39
合計ジャッジ時間 5,777 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n,k=map(int,input().split())
r=n%(k+1)-1
print(r,flush=True)
ct=1
while True:
  if int(input())>=n:
    sys.exit()
  else:
    print(ct*(k+1)+r,flush=True)
    ct+=1
0