結果

問題 No.250 atetubouのzetubou
ユーザー rlangevinrlangevin
提出日時 2023-01-20 08:56:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 282 ms / 5,000 ms
コード長 313 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 148,616 KB
最終ジャッジ日時 2023-09-05 03:33:47
合計ジャッジ時間 7,813 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 268 ms
148,376 KB
testcase_01 AC 229 ms
137,572 KB
testcase_02 AC 272 ms
148,228 KB
testcase_03 AC 274 ms
148,616 KB
testcase_04 AC 272 ms
148,508 KB
testcase_05 AC 273 ms
148,392 KB
testcase_06 AC 268 ms
148,424 KB
testcase_07 AC 260 ms
148,548 KB
testcase_08 AC 274 ms
148,356 KB
testcase_09 AC 265 ms
148,512 KB
testcase_10 AC 275 ms
148,508 KB
testcase_11 AC 264 ms
148,504 KB
testcase_12 AC 271 ms
148,500 KB
testcase_13 AC 260 ms
148,600 KB
testcase_14 AC 209 ms
137,292 KB
testcase_15 AC 280 ms
148,432 KB
testcase_16 AC 282 ms
148,556 KB
testcase_17 AC 280 ms
148,516 KB
testcase_18 AC 280 ms
148,508 KB
testcase_19 AC 282 ms
148,280 KB
testcase_20 AC 210 ms
137,400 KB
testcase_21 AC 208 ms
137,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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