結果

問題 No.250 atetubouのzetubou
ユーザー flippergoflippergo
提出日時 2021-01-12 15:59:39
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 357 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 849,492 KB
最終ジャッジ日時 2024-05-01 07:06:50
合計ジャッジ時間 16,872 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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