結果

問題 No.250 atetubouのzetubou
ユーザー 👑 KazunKazun
提出日時 2021-06-18 03:27:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 79,432 KB
最終ジャッジ日時 2023-09-02 15:26:51
合計ジャッジ時間 5,655 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 179 ms
78,032 KB
testcase_01 AC 128 ms
77,104 KB
testcase_02 AC 198 ms
77,788 KB
testcase_03 AC 197 ms
77,964 KB
testcase_04 AC 193 ms
78,164 KB
testcase_05 AC 187 ms
77,884 KB
testcase_06 AC 179 ms
78,040 KB
testcase_07 AC 164 ms
77,988 KB
testcase_08 AC 189 ms
77,604 KB
testcase_09 AC 183 ms
77,776 KB
testcase_10 AC 197 ms
77,868 KB
testcase_11 AC 175 ms
78,068 KB
testcase_12 AC 186 ms
78,292 KB
testcase_13 AC 171 ms
77,724 KB
testcase_14 AC 95 ms
75,504 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 83 ms
71,536 KB
testcase_21 AC 84 ms
71,356 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