結果

問題 No.250 atetubouのzetubou
ユーザー 👑 rin204rin204
提出日時 2022-01-20 07:21:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 76,928 KB
最終ジャッジ日時 2024-05-02 20:12:17
合計ジャッジ時間 4,015 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
76,416 KB
testcase_01 AC 71 ms
65,664 KB
testcase_02 AC 120 ms
76,544 KB
testcase_03 AC 125 ms
76,288 KB
testcase_04 AC 116 ms
76,672 KB
testcase_05 AC 119 ms
76,032 KB
testcase_06 AC 117 ms
76,288 KB
testcase_07 AC 101 ms
76,160 KB
testcase_08 AC 116 ms
76,288 KB
testcase_09 AC 111 ms
76,288 KB
testcase_10 AC 116 ms
76,288 KB
testcase_11 AC 108 ms
76,160 KB
testcase_12 AC 117 ms
76,288 KB
testcase_13 AC 107 ms
76,288 KB
testcase_14 AC 41 ms
51,968 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 40 ms
51,968 KB
testcase_21 AC 41 ms
51,840 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