結果

問題 No.250 atetubouのzetubou
ユーザー daku9640daku9640
提出日時 2017-02-24 20:54:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,010 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,532 KB
最終ジャッジ日時 2023-08-30 23:15:36
合計ジャッジ時間 35,542 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,722 ms
8,388 KB
testcase_01 AC 310 ms
8,276 KB
testcase_02 AC 2,659 ms
8,308 KB
testcase_03 AC 3,010 ms
8,496 KB
testcase_04 AC 2,626 ms
8,452 KB
testcase_05 AC 2,722 ms
8,396 KB
testcase_06 AC 2,102 ms
8,404 KB
testcase_07 AC 1,028 ms
8,120 KB
testcase_08 AC 2,482 ms
8,532 KB
testcase_09 AC 1,873 ms
8,336 KB
testcase_10 AC 2,687 ms
8,532 KB
testcase_11 AC 1,613 ms
7,816 KB
testcase_12 AC 2,448 ms
8,348 KB
testcase_13 AC 1,351 ms
8,324 KB
testcase_14 AC 29 ms
8,036 KB
testcase_15 AC 712 ms
8,000 KB
testcase_16 AC 712 ms
7,932 KB
testcase_17 AC 703 ms
7,936 KB
testcase_18 AC 709 ms
7,936 KB
testcase_19 AC 712 ms
8,040 KB
testcase_20 AC 16 ms
7,824 KB
testcase_21 AC 16 ms
7,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import factorial
c = lambda y, x: factorial(y) // factorial(x) // factorial(y - x)
q = int(input())
for _ in [0] * q:
    d, x, t = [int(i) for i in input().split()]
    print("AC" if c(x + d - 1, x) <= t else "ZETUBOU")
0