結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー |
![]() |
提出日時 | 2023-05-09 02:46:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 81,628 KB |
実行使用メモリ | 70,772 KB |
平均クエリ数 | 8.70 |
最終ジャッジ日時 | 2024-11-25 17:07:11 |
合計ジャッジ時間 | 4,554 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 30 |
ソースコード
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()