結果

問題 No.250 atetubouのzetubou
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-15 00:59:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 424 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 816,804 KB
最終ジャッジ日時 2023-09-13 14:47:18
合計ジャッジ時間 7,516 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 -- -
testcase_02 -- -
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 #

N = 3050
C = [[0]*(N+1) for i in range(N+1)] #C[n][k] > nCk

for i in range(N+1):
    for j in range(i+1):
        if j == 0 or j == i:
            C[i][j] = 1
        else:
            C[i][j] = C[i-1][j-1]+C[i-1][j]

def cmb3(n, k):
    return C[n][k]

q = int(input())
for i in range(q):
    d, x, t = map(int, input().split())
    c = cmb3(x+d-1, d-1)
    if c > t:
        print('ZETUBO')
    else:
        print('AC')
0