結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー |
![]() |
提出日時 | 2023-12-17 21:32:03 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 82,416 KB |
実行使用メモリ | 88,388 KB |
最終ジャッジ日時 | 2024-09-27 08:07:51 |
合計ジャッジ時間 | 6,612 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
import sys readline=sys.stdin.readline N,K=map(int,readline().split()) N-=1 print(N%(K+1)) while True: A=int(readline()) if A>=N: exit() B=A+(-A+N)%(K+1) print(B)