結果

問題 No.250 atetubouのzetubou
ユーザー lloyzlloyz
提出日時 2023-05-02 00:07:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 82,544 KB
実行使用メモリ 77,152 KB
最終ジャッジ日時 2024-04-30 21:35:47
合計ジャッジ時間 3,062 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
72,064 KB
testcase_01 AC 64 ms
67,104 KB
testcase_02 AC 85 ms
74,368 KB
testcase_03 AC 87 ms
74,740 KB
testcase_04 AC 84 ms
74,280 KB
testcase_05 AC 84 ms
74,756 KB
testcase_06 AC 81 ms
73,428 KB
testcase_07 AC 71 ms
69,768 KB
testcase_08 AC 89 ms
74,384 KB
testcase_09 AC 85 ms
72,100 KB
testcase_10 AC 92 ms
74,120 KB
testcase_11 AC 75 ms
71,376 KB
testcase_12 AC 82 ms
73,800 KB
testcase_13 AC 72 ms
71,332 KB
testcase_14 AC 40 ms
52,824 KB
testcase_15 AC 140 ms
76,760 KB
testcase_16 AC 140 ms
76,620 KB
testcase_17 AC 144 ms
76,740 KB
testcase_18 AC 142 ms
77,000 KB
testcase_19 AC 144 ms
77,152 KB
testcase_20 AC 39 ms
53,228 KB
testcase_21 AC 39 ms
52,760 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