結果

問題 No.250 atetubouのzetubou
ユーザー 👑 KazunKazun
提出日時 2021-06-18 03:47:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 2,598 ms
コンパイル使用メモリ 86,748 KB
実行使用メモリ 79,192 KB
最終ジャッジ日時 2023-09-02 17:23:56
合計ジャッジ時間 5,968 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 171 ms
77,616 KB
testcase_01 AC 113 ms
76,824 KB
testcase_02 AC 198 ms
77,464 KB
testcase_03 AC 202 ms
77,336 KB
testcase_04 AC 194 ms
77,640 KB
testcase_05 AC 198 ms
77,696 KB
testcase_06 AC 180 ms
77,940 KB
testcase_07 AC 149 ms
77,532 KB
testcase_08 AC 193 ms
77,828 KB
testcase_09 AC 176 ms
77,592 KB
testcase_10 AC 200 ms
77,996 KB
testcase_11 AC 171 ms
77,604 KB
testcase_12 AC 188 ms
77,828 KB
testcase_13 AC 160 ms
77,648 KB
testcase_14 AC 78 ms
75,484 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 72 ms
70,924 KB
testcase_21 AC 73 ms
71,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def nCr(n,r,T):
    r=min(r,n-r)
    a=b=1
    while r:
        a*=n; b*=r
        n-=1; r-=1

        if a//b>T:
            return False
    return True

Q=int(input())

for _ in range(Q):
    D,X,T=map(int,input().split())
    print("AC" if nCr(D+X-1,D-1,T) else "ZETUBOU")
0