結果

問題 No.250 atetubouのzetubou
コンテスト
ユーザー rlangevin
提出日時 2023-01-20 08:56:45
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 192 ms / 5,000 ms
+ 671µs
コード長 313 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 243 ms
コンパイル使用メモリ 95,728 KB
実行使用メモリ 155,904 KB
最終ジャッジ日時 2026-07-27 11:48:49
合計ジャッジ時間 6,049 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

Q = int(input())
M = 3005
comb = [[1] * M for i in range(M)]
inf = 10 ** 18
for i in range(1, M):
    for j in range(1, i):
        comb[i][j] = min(inf, comb[i-1][j] + comb[i-1][j-1])

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