結果

問題 No.250 atetubouのzetubou
ユーザー ssmkzkssmkzk
提出日時 2019-06-21 12:14:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,721 ms / 5,000 ms
コード長 210 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 45,480 KB
最終ジャッジ日時 2023-08-26 01:11:02
合計ジャッジ時間 35,042 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,628 ms
45,216 KB
testcase_01 AC 453 ms
45,372 KB
testcase_02 AC 2,399 ms
45,344 KB
testcase_03 AC 2,721 ms
45,248 KB
testcase_04 AC 2,391 ms
45,476 KB
testcase_05 AC 2,458 ms
45,316 KB
testcase_06 AC 1,948 ms
45,176 KB
testcase_07 AC 1,036 ms
45,304 KB
testcase_08 AC 2,257 ms
45,312 KB
testcase_09 AC 1,775 ms
45,408 KB
testcase_10 AC 2,429 ms
45,248 KB
testcase_11 AC 1,542 ms
45,404 KB
testcase_12 AC 2,217 ms
45,296 KB
testcase_13 AC 1,322 ms
45,480 KB
testcase_14 AC 225 ms
45,232 KB
testcase_15 AC 285 ms
45,272 KB
testcase_16 AC 280 ms
45,176 KB
testcase_17 AC 279 ms
45,368 KB
testcase_18 AC 277 ms
45,160 KB
testcase_19 AC 276 ms
45,268 KB
testcase_20 AC 209 ms
45,184 KB
testcase_21 AC 212 ms
45,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import comb

Q = int(input())

for i in range(Q):
    D, X, T = map(int,input().split())
    if T < comb(D + X - 1, D - 1, exact=True):
        print("ZETUBOU")
    else:
        print("AC")
0