結果

問題 No.250 atetubouのzetubou
コンテスト
ユーザー titia
提出日時 2022-07-13 02:59:07
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
MLE  
実行時間 -
コード長 413 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 289 ms
コンパイル使用メモリ 21,412 KB
実行使用メモリ 1,310,976 KB
最終ジャッジ日時 2026-07-28 10:14:43
合計ジャッジ時間 7,532 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other MLE * 2 -- * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

N=3500

Combi=[[] for i in range(N+1)]
Combi[0]=[1,0]

for i in range(1,N+1):
    Combi[i].append(1)
    for j in range(i):
        Combi[i].append(Combi[i-1][j]+Combi[i-1][j+1])
    Combi[i].append(0)

T=int(input())
for tests in range(T):
    d,x,t=map(int,input().split())

    ans=Combi[x+d-1][d-1]

    if ans<=t:
        print("AC")
    else:
        print("ZETUBOU")
0