結果

問題 No.33 アメーバがたくさん
ユーザー szkhtsszkhts
提出日時 2023-02-26 08:16:15
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
MLE  
実行時間 -
コード長 289 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 815,428 KB
最終ジャッジ日時 2023-10-12 01:17:43
合計ジャッジ時間 4,970 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 16 ms
7,836 KB
testcase_03 AC 16 ms
7,792 KB
testcase_04 AC 16 ms
7,896 KB
testcase_05 AC 16 ms
7,916 KB
testcase_06 AC 18 ms
8,368 KB
testcase_07 AC 33 ms
11,368 KB
testcase_08 MLE -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, d, t = map(int, input().split())
amebas = []
amebas.append(list(map(int, input().split())))

for i in range(t):
    ameba = []
    for a in amebas[i]:
        ameba.append(a - d)
        ameba.append(a)
        ameba.append(a + d)

    amebas.append(ameba)

print(len(set(amebas[-1])))
0