結果

問題 No.33 アメーバがたくさん
ユーザー ゆるくゆるく
提出日時 2014-10-02 23:41:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 310 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 816,728 KB
最終ジャッジ日時 2023-09-11 07:17:33
合計ジャッジ時間 6,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,500 KB
testcase_01 AC 18 ms
8,564 KB
testcase_02 AC 18 ms
8,456 KB
testcase_03 AC 19 ms
8,436 KB
testcase_04 AC 18 ms
8,508 KB
testcase_05 AC 19 ms
8,576 KB
testcase_06 AC 21 ms
8,648 KB
testcase_07 AC 39 ms
11,448 KB
testcase_08 MLE -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

d = deque()


N, D, T = map(int, input().split())

X = deque(list(map(int, input().split())))

for _ in range(T):
    for i in range(len(X)):
        a = X.popleft()
        X.append(a - D)
        X.append(a + D)
        X.append(a)

print(len(set(X)))



0