結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-10-07 02:09:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 200 bytes |
| コンパイル時間 | 609 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 46,324 KB |
| 平均クエリ数 | 0.17 |
| 最終ジャッジ日時 | 2024-07-16 21:36:33 |
| 合計ジャッジ時間 | 4,280 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 28 |
ソースコード
N,K=map(int, input().split())
if N%(K+1) == 1:
print(0)
d = 0
while True:
n = int(input())
if n>=N:
exit()
else:
d = n-d
print(n+(K+1)-d)
d = n+(K+1)-d
matsu7874