結果

問題 No.250 atetubouのzetubou
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-15 00:58:20
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 427 bytes
コンパイル時間 411 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 509,540 KB
最終ジャッジ日時 2023-09-13 14:45:59
合計ジャッジ時間 26,302 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = 2*10**3
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