結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー lllllll88938494
提出日時 2023-05-09 02:38:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 418 ms
コンパイル使用メモリ 82,668 KB
実行使用メモリ 71,248 KB
平均クエリ数 8.70
最終ジャッジ日時 2024-11-25 16:57:51
合計ジャッジ時間 5,280 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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