結果

問題 No.1122 Plane Tickets
ユーザー shell_mugshell_mug
提出日時 2020-07-22 22:12:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 10,768 KB
実行使用メモリ 58,712 KB
最終ジャッジ日時 2023-09-04 21:01:34
合計ジャッジ時間 4,919 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 292 ms
58,116 KB
testcase_01 AC 296 ms
58,200 KB
testcase_02 AC 296 ms
58,640 KB
testcase_03 AC 299 ms
58,588 KB
testcase_04 AC 299 ms
58,312 KB
testcase_05 AC 295 ms
58,260 KB
testcase_06 AC 294 ms
58,604 KB
testcase_07 AC 295 ms
58,464 KB
testcase_08 AC 294 ms
58,284 KB
testcase_09 AC 290 ms
58,080 KB
testcase_10 AC 291 ms
58,196 KB
testcase_11 AC 297 ms
58,692 KB
testcase_12 AC 291 ms
58,460 KB
testcase_13 AC 294 ms
58,340 KB
testcase_14 AC 292 ms
58,108 KB
testcase_15 AC 287 ms
58,176 KB
testcase_16 AC 288 ms
58,328 KB
testcase_17 AC 288 ms
58,356 KB
testcase_18 AC 286 ms
58,268 KB
testcase_19 AC 288 ms
58,172 KB
testcase_20 AC 290 ms
58,148 KB
testcase_21 AC 296 ms
58,212 KB
testcase_22 AC 293 ms
58,300 KB
testcase_23 AC 288 ms
58,476 KB
testcase_24 AC 287 ms
58,176 KB
testcase_25 AC 284 ms
58,128 KB
testcase_26 AC 289 ms
58,700 KB
testcase_27 AC 287 ms
58,704 KB
testcase_28 AC 288 ms
58,192 KB
testcase_29 AC 290 ms
57,956 KB
testcase_30 AC 291 ms
58,200 KB
testcase_31 AC 288 ms
58,712 KB
testcase_32 WA -
testcase_33 AC 294 ms
58,664 KB
testcase_34 AC 296 ms
58,236 KB
testcase_35 AC 296 ms
57,952 KB
testcase_36 AC 291 ms
58,156 KB
testcase_37 AC 287 ms
58,236 KB
testcase_38 AC 294 ms
58,316 KB
testcase_39 AC 287 ms
58,116 KB
testcase_40 AC 292 ms
57,936 KB
testcase_41 AC 292 ms
57,944 KB
testcase_42 AC 297 ms
57,948 KB
testcase_43 AC 290 ms
57,940 KB
testcase_44 AC 290 ms
57,944 KB
testcase_45 AC 293 ms
58,596 KB
testcase_46 AC 295 ms
58,004 KB
testcase_47 AC 293 ms
58,700 KB
testcase_48 AC 293 ms
58,632 KB
testcase_49 WA -
testcase_50 AC 295 ms
57,944 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.optimize import linprog
c = [-1,-1,-1,-1,-1]
a_ub = [[1,1,1,0,0],
        [0,1,1,1,0],
        [0,0,1,1,1],
        [1,0,0,1,1],
        [1,1,0,0,1]]
b_ub = list(map(int, input().split()))
bounds = (0, None)
res = linprog(c, A_ub=a_ub, b_ub=b_ub, bounds=bounds, method='revised simplex')
print(int(round(-res.fun,0)))
0