結果

問題 No.250 atetubouのzetubou
ユーザー 12354865271235486527
提出日時 2019-12-15 16:42:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 372 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 747,420 KB
最終ジャッジ日時 2023-09-15 15:43:06
合計ジャッジ時間 51,773 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 MLE -
testcase_04 MLE -
testcase_05 MLE -
testcase_06 MLE -
testcase_07 MLE -
testcase_08 MLE -
testcase_09 MLE -
testcase_10 MLE -
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 AC 99 ms
12,116 KB
testcase_16 AC 98 ms
12,340 KB
testcase_17 AC 98 ms
12,112 KB
testcase_18 AC 100 ms
12,124 KB
testcase_19 AC 101 ms
12,008 KB
testcase_20 AC 20 ms
8,584 KB
testcase_21 AC 79 ms
20,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import lru_cache
import sys

@lru_cache(maxsize=None)
def culc(D, X):
    if D == 1:
        return 1
    if X == 1:
        return D
    return culc(D, X-1) + culc(D-1, X)

sys.setrecursionlimit(10**9)
N = int(input())
for _ in range(N):
    D, X, T = map(int, input().split())
    if culc(D, X) <= T:
        print('AC')
    else:
        print('ZETUBOU')
0