結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー lllllll88938494
提出日時 2023-05-09 03:05:37
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 234 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 82,708 KB
実行使用メモリ 83,308 KB
平均クエリ数 3.77
最終ジャッジ日時 2024-11-25 17:22:30
合計ジャッジ時間 5,099 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
if  (n-1)%(k+1) == 0:
    print(0,flush=True)
    now=int(input())
else:
    now = 0

while True:
    a=((n-1)-now)%(k+1)
    print(a+now,flush=True)
    now = int(input())
    if now >= n:
        break
0