結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー takakintakakin
提出日時 2020-05-28 21:36:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 496 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 24,500 KB
平均クエリ数 3.40
最終ジャッジ日時 2023-09-24 03:36:46
合計ジャッジ時間 4,489 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
24,500 KB
testcase_01 AC 59 ms
24,432 KB
testcase_02 WA -
testcase_03 AC 59 ms
23,856 KB
testcase_04 AC 60 ms
23,720 KB
testcase_05 AC 59 ms
23,696 KB
testcase_06 AC 59 ms
23,856 KB
testcase_07 AC 59 ms
23,900 KB
testcase_08 AC 58 ms
23,864 KB
testcase_09 WA -
testcase_10 AC 59 ms
24,496 KB
testcase_11 AC 58 ms
24,028 KB
testcase_12 AC 58 ms
23,968 KB
testcase_13 AC 61 ms
23,888 KB
testcase_14 AC 61 ms
23,876 KB
testcase_15 AC 62 ms
23,844 KB
testcase_16 AC 61 ms
24,452 KB
testcase_17 AC 61 ms
23,960 KB
testcase_18 WA -
testcase_19 AC 61 ms
23,788 KB
testcase_20 AC 62 ms
24,424 KB
testcase_21 AC 63 ms
23,680 KB
testcase_22 AC 63 ms
24,096 KB
testcase_23 AC 64 ms
24,100 KB
testcase_24 AC 59 ms
24,424 KB
testcase_25 AC 60 ms
24,100 KB
testcase_26 AC 62 ms
24,000 KB
testcase_27 AC 62 ms
23,984 KB
testcase_28 AC 62 ms
23,832 KB
testcase_29 AC 62 ms
23,964 KB
権限があれば一括ダウンロードができます

ソースコード

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