結果

問題 No.250 atetubouのzetubou
ユーザー 👑 rin204rin204
提出日時 2022-01-20 07:24:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 4,009 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 77,440 KB
最終ジャッジ日時 2024-05-02 20:13:01
合計ジャッジ時間 42,581 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,339 ms
76,416 KB
testcase_01 AC 457 ms
75,520 KB
testcase_02 AC 3,540 ms
76,672 KB
testcase_03 AC 4,009 ms
77,440 KB
testcase_04 AC 3,581 ms
76,928 KB
testcase_05 AC 3,618 ms
77,056 KB
testcase_06 AC 2,830 ms
76,800 KB
testcase_07 AC 1,394 ms
76,288 KB
testcase_08 AC 3,290 ms
76,672 KB
testcase_09 AC 2,543 ms
76,416 KB
testcase_10 AC 3,568 ms
76,672 KB
testcase_11 AC 2,187 ms
76,160 KB
testcase_12 AC 3,221 ms
76,800 KB
testcase_13 AC 1,838 ms
76,160 KB
testcase_14 AC 68 ms
66,176 KB
testcase_15 AC 142 ms
76,288 KB
testcase_16 AC 144 ms
77,312 KB
testcase_17 AC 140 ms
77,056 KB
testcase_18 AC 143 ms
76,544 KB
testcase_19 AC 148 ms
76,800 KB
testcase_20 AC 40 ms
51,584 KB
testcase_21 AC 40 ms
51,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    d, x, t = map(int, input().split())
    n = x + d - 1
    r = min(x, d - 1)
    ans = 1
    for i in range(1, r + 1):
        ans *= n - i + 1
        ans //= i
    if ans > t:
        print("ZETUBOU")
        return
    print("AC")
    
    
for _ in range(int(input())):
    solve()
0