結果

問題 No.250 atetubouのzetubou
コンテスト
ユーザー titia
提出日時 2022-07-13 02:59:07
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
MLE  
実行時間 -
コード長 413 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 318 ms
コンパイル使用メモリ 20,956 KB
実行使用メモリ 1,308,508 KB
最終ジャッジ日時 2026-03-09 10:25:35
合計ジャッジ時間 5,801 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other MLE * 1 -- * 19
権限があれば一括ダウンロードができます

ソースコード

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