結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
![]() |
提出日時 | 2021-02-04 10:05:22 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 82,572 KB |
実行使用メモリ | 86,644 KB |
平均クエリ数 | 0.17 |
最終ジャッジ日時 | 2024-07-17 10:28:34 |
合計ジャッジ時間 | 4,053 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 28 |
ソースコード
def say(x): print(x) sys.stdout.flush() import sys n,k = map(int,input().split()) if (n-1)%(k+1)==0: say(0) while True: x = int(input()) if x >= n: exit() r = (n-1-x)%(k+1) v = x + (r if r else k) say(v)