結果

問題 No.250 atetubouのzetubou
ユーザー gorugo30gorugo30
提出日時 2021-03-17 23:39:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,500 ms / 5,000 ms
コード長 360 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 81,948 KB
実行使用メモリ 78,148 KB
最終ジャッジ日時 2024-04-27 15:18:16
合計ジャッジ時間 17,434 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 916 ms
77,388 KB
testcase_01 AC 208 ms
75,760 KB
testcase_02 AC 1,366 ms
77,476 KB
testcase_03 AC 1,500 ms
77,984 KB
testcase_04 AC 1,375 ms
77,416 KB
testcase_05 AC 1,427 ms
77,524 KB
testcase_06 AC 1,085 ms
77,392 KB
testcase_07 AC 554 ms
76,872 KB
testcase_08 AC 1,248 ms
77,380 KB
testcase_09 AC 976 ms
77,100 KB
testcase_10 AC 1,356 ms
78,148 KB
testcase_11 AC 857 ms
77,912 KB
testcase_12 AC 1,238 ms
77,576 KB
testcase_13 AC 729 ms
76,892 KB
testcase_14 AC 50 ms
74,664 KB
testcase_15 AC 124 ms
77,144 KB
testcase_16 AC 129 ms
77,544 KB
testcase_17 AC 125 ms
77,208 KB
testcase_18 AC 121 ms
77,392 KB
testcase_19 AC 121 ms
77,100 KB
testcase_20 AC 34 ms
52,348 KB
testcase_21 AC 33 ms
53,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

tle = "ZETUBOU"
AC = "AC"

def comb(n, r):
    ue = 1
    sita = 1
    for i in range(r):
        ue *= n
        n -= 1
    for i in range(1, r + 1):
        sita *= i
    return ue // sita

Q = int(input())
for case in range(Q):
    D, X, T = map(int, input().split())
    if comb(X + D - 1, min(X, D - 1)) > T:
        print(tle)
    else:
        print(AC)
0