結果

問題 No.250 atetubouのzetubou
ユーザー lloyzlloyz
提出日時 2023-05-02 00:07:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 77,028 KB
最終ジャッジ日時 2024-11-20 19:38:17
合計ジャッジ時間 2,989 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,996 KB
testcase_01 AC 62 ms
67,536 KB
testcase_02 AC 83 ms
73,828 KB
testcase_03 AC 87 ms
74,492 KB
testcase_04 AC 82 ms
75,036 KB
testcase_05 AC 83 ms
74,804 KB
testcase_06 AC 78 ms
73,592 KB
testcase_07 AC 69 ms
69,212 KB
testcase_08 AC 82 ms
73,960 KB
testcase_09 AC 76 ms
72,180 KB
testcase_10 AC 83 ms
73,872 KB
testcase_11 AC 74 ms
70,532 KB
testcase_12 AC 81 ms
74,328 KB
testcase_13 AC 71 ms
71,452 KB
testcase_14 AC 39 ms
53,508 KB
testcase_15 AC 138 ms
76,424 KB
testcase_16 AC 137 ms
76,612 KB
testcase_17 AC 136 ms
76,576 KB
testcase_18 AC 137 ms
77,028 KB
testcase_19 AC 138 ms
76,540 KB
testcase_20 AC 37 ms
52,616 KB
testcase_21 AC 38 ms
51,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    d, x, t = map(int, input().split())
    res = 1
    for i in range(min(d - 1, x)):
        res *= d + x - 1 - i
        res //= i + 1
        if res > t:
            break
    if res <= t:
        print("AC")
    else:
        print("ZETUBOU")
0