結果

問題 No.250 atetubouのzetubou
ユーザー flippergoflippergo
提出日時 2021-01-12 16:19:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 396 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 759,884 KB
最終ジャッジ日時 2024-05-01 07:10:01
合計ジャッジ時間 65,148 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 114 ms
13,764 KB
testcase_16 AC 117 ms
13,784 KB
testcase_17 AC 115 ms
13,836 KB
testcase_18 AC 118 ms
13,888 KB
testcase_19 AC 112 ms
13,708 KB
testcase_20 AC 26 ms
10,624 KB
testcase_21 AC 110 ms
22,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(5000)
memo = {}
def f(n,k):
    if k>n or k<0:
        return 0
    if k==n or k==0:
        return 1
    if (n,k) in memo:
        return memo[(n,k)]
    memo[(n,k)] = f(n-1,k-1)+f(n-1,k)
    return memo[(n,k)]
Q = int(input())
for _ in range(Q):
    D,X,T = map(int,input().split())
    if f(X+D-1,D-1)<=T:
        print("AC")
    else:
        print("ZETUBOU")
0