結果

問題 No.250 atetubouのzetubou
ユーザー 👑 rin204rin204
提出日時 2022-01-20 07:24:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 3,980 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 79,104 KB
最終ジャッジ日時 2023-08-15 08:26:55
合計ジャッジ時間 43,474 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,314 ms
78,844 KB
testcase_01 AC 470 ms
76,852 KB
testcase_02 AC 3,503 ms
78,260 KB
testcase_03 AC 3,980 ms
78,364 KB
testcase_04 AC 3,487 ms
77,980 KB
testcase_05 AC 3,604 ms
78,720 KB
testcase_06 AC 2,792 ms
77,792 KB
testcase_07 AC 1,398 ms
77,700 KB
testcase_08 AC 3,267 ms
78,052 KB
testcase_09 AC 2,553 ms
77,896 KB
testcase_10 AC 3,549 ms
78,856 KB
testcase_11 AC 2,190 ms
78,488 KB
testcase_12 AC 3,220 ms
77,960 KB
testcase_13 AC 1,841 ms
77,872 KB
testcase_14 AC 99 ms
75,596 KB
testcase_15 AC 163 ms
78,776 KB
testcase_16 AC 167 ms
78,632 KB
testcase_17 AC 163 ms
78,664 KB
testcase_18 AC 168 ms
79,104 KB
testcase_19 AC 179 ms
78,656 KB
testcase_20 AC 78 ms
71,240 KB
testcase_21 AC 77 ms
71,072 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