結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
![]() |
提出日時 | 2019-05-21 23:17:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 28,064 KB |
平均クエリ数 | 8.70 |
最終ジャッジ日時 | 2024-07-16 17:11:54 |
合計ジャッジ時間 | 4,284 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 30 |
ソースコード
n, k = [ int(v) for v in input().split() ] border = ( n - 1 ) % ( k + 1 ) if border == 0: output = 0 else: output = border print(str(output)) while True: m = int(input()) if m > n: pass else: x = m % ( k + 1 ) y = m + k + 1 - x print(y)