結果

問題 No.250 atetubouのzetubou
ユーザー matsu7874matsu7874
提出日時 2015-11-29 16:29:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-10-12 05:44:07
合計ジャッジ時間 5,086 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
7,800 KB
testcase_01 AC 24 ms
7,856 KB
testcase_02 AC 87 ms
7,776 KB
testcase_03 AC 96 ms
7,884 KB
testcase_04 AC 84 ms
7,752 KB
testcase_05 AC 85 ms
7,824 KB
testcase_06 AC 70 ms
7,848 KB
testcase_07 AC 44 ms
7,760 KB
testcase_08 AC 85 ms
7,736 KB
testcase_09 AC 66 ms
7,804 KB
testcase_10 AC 87 ms
7,780 KB
testcase_11 AC 59 ms
7,752 KB
testcase_12 AC 81 ms
7,788 KB
testcase_13 AC 52 ms
7,860 KB
testcase_14 AC 17 ms
7,764 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 16 ms
7,760 KB
testcase_21 AC 16 ms
7,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def combination(n, r, limit):
    res = 1
    t = r - 1
    while t >= 0 and res < limit:
        res = res * (n - t) // (r - t)
        t -= 1
    return res

q=int(input())
for _ in range(q):
    d,x,t=map(int, input().split())
    program = combination(d+x-1,d-1,t)
    if program > t:
        print('ZETUBOU')
    else:
        print('AC')
0