結果

問題 No.1122 Plane Tickets
ユーザー shell_mugshell_mug
提出日時 2020-07-22 22:27:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 10,964 KB
実行使用メモリ 103,796 KB
最終ジャッジ日時 2023-09-04 21:38:49
合計ジャッジ時間 21,161 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 901 ms
58,292 KB
testcase_01 AC 291 ms
58,204 KB
testcase_02 AC 293 ms
57,796 KB
testcase_03 AC 290 ms
57,788 KB
testcase_04 AC 289 ms
57,744 KB
testcase_05 AC 292 ms
57,716 KB
testcase_06 AC 295 ms
58,088 KB
testcase_07 AC 304 ms
58,136 KB
testcase_08 AC 295 ms
57,716 KB
testcase_09 AC 289 ms
57,736 KB
testcase_10 AC 287 ms
57,880 KB
testcase_11 AC 288 ms
57,740 KB
testcase_12 AC 289 ms
57,992 KB
testcase_13 AC 288 ms
57,576 KB
testcase_14 AC 287 ms
58,072 KB
testcase_15 AC 288 ms
57,920 KB
testcase_16 AC 289 ms
57,836 KB
testcase_17 AC 290 ms
57,840 KB
testcase_18 AC 293 ms
57,844 KB
testcase_19 AC 290 ms
57,812 KB
testcase_20 AC 286 ms
57,924 KB
testcase_21 AC 300 ms
57,832 KB
testcase_22 AC 292 ms
57,736 KB
testcase_23 AC 295 ms
57,572 KB
testcase_24 WA -
testcase_25 AC 295 ms
57,704 KB
testcase_26 AC 295 ms
57,616 KB
testcase_27 AC 289 ms
58,036 KB
testcase_28 WA -
testcase_29 AC 302 ms
57,792 KB
testcase_30 AC 294 ms
58,060 KB
testcase_31 AC 293 ms
58,096 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 292 ms
57,828 KB
testcase_35 AC 292 ms
57,612 KB
testcase_36 AC 293 ms
57,732 KB
testcase_37 AC 294 ms
57,812 KB
testcase_38 AC 292 ms
57,848 KB
testcase_39 AC 294 ms
57,920 KB
testcase_40 AC 291 ms
57,640 KB
testcase_41 AC 291 ms
57,648 KB
testcase_42 AC 288 ms
58,240 KB
testcase_43 AC 289 ms
58,064 KB
testcase_44 AC 289 ms
57,800 KB
testcase_45 AC 290 ms
58,188 KB
testcase_46 AC 292 ms
57,852 KB
testcase_47 AC 291 ms
58,200 KB
testcase_48 AC 292 ms
58,160 KB
testcase_49 WA -
testcase_50 AC 290 ms
57,904 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()))
res = linprog(c, A_ub=a_ub, b_ub=b_ub, method='revised simplex')
print(sum(map(lambda x:int(round(x,0)), res.x)))
0