結果

問題 No.250 atetubouのzetubou
ユーザー daku9640daku9640
提出日時 2017-02-24 21:08:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,009 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,312 KB
最終ジャッジ日時 2023-08-30 23:13:04
合計ジャッジ時間 7,462 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
7,920 KB
testcase_01 AC 25 ms
7,840 KB
testcase_02 AC 104 ms
7,784 KB
testcase_03 AC 116 ms
8,192 KB
testcase_04 AC 99 ms
7,728 KB
testcase_05 AC 103 ms
7,812 KB
testcase_06 AC 83 ms
7,812 KB
testcase_07 AC 50 ms
7,852 KB
testcase_08 AC 99 ms
7,728 KB
testcase_09 AC 78 ms
7,920 KB
testcase_10 AC 104 ms
7,724 KB
testcase_11 AC 70 ms
7,732 KB
testcase_12 AC 96 ms
7,732 KB
testcase_13 AC 63 ms
7,780 KB
testcase_14 AC 16 ms
7,808 KB
testcase_15 AC 955 ms
8,100 KB
testcase_16 AC 994 ms
8,312 KB
testcase_17 AC 967 ms
8,284 KB
testcase_18 AC 1,009 ms
8,108 KB
testcase_19 AC 999 ms
8,168 KB
testcase_20 AC 16 ms
7,836 KB
testcase_21 AC 16 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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