結果

問題 No.1122 Plane Tickets
ユーザー keijakkeijak
提出日時 2020-10-28 20:41:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 106,128 KB
最終ジャッジ日時 2023-09-29 03:46:22
合計ジャッジ時間 22,372 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 324 ms
58,024 KB
testcase_01 AC 315 ms
58,080 KB
testcase_02 AC 319 ms
58,028 KB
testcase_03 AC 323 ms
58,092 KB
testcase_04 AC 326 ms
58,176 KB
testcase_05 AC 322 ms
57,984 KB
testcase_06 AC 318 ms
58,120 KB
testcase_07 AC 311 ms
58,160 KB
testcase_08 AC 315 ms
58,456 KB
testcase_09 AC 312 ms
58,140 KB
testcase_10 AC 316 ms
58,056 KB
testcase_11 AC 310 ms
58,372 KB
testcase_12 AC 315 ms
58,092 KB
testcase_13 AC 314 ms
58,144 KB
testcase_14 AC 316 ms
58,336 KB
testcase_15 AC 323 ms
58,048 KB
testcase_16 AC 322 ms
58,360 KB
testcase_17 AC 324 ms
58,264 KB
testcase_18 AC 322 ms
58,040 KB
testcase_19 AC 319 ms
58,252 KB
testcase_20 AC 315 ms
58,152 KB
testcase_21 AC 323 ms
58,140 KB
testcase_22 AC 323 ms
58,144 KB
testcase_23 AC 323 ms
58,280 KB
testcase_24 AC 325 ms
58,152 KB
testcase_25 AC 324 ms
58,196 KB
testcase_26 AC 329 ms
58,168 KB
testcase_27 AC 327 ms
58,424 KB
testcase_28 AC 324 ms
58,120 KB
testcase_29 AC 320 ms
58,168 KB
testcase_30 AC 322 ms
58,192 KB
testcase_31 AC 322 ms
58,184 KB
testcase_32 AC 330 ms
58,324 KB
testcase_33 AC 324 ms
58,136 KB
testcase_34 AC 318 ms
57,864 KB
testcase_35 AC 322 ms
57,956 KB
testcase_36 AC 323 ms
58,156 KB
testcase_37 AC 322 ms
58,052 KB
testcase_38 AC 324 ms
58,200 KB
testcase_39 AC 321 ms
57,928 KB
testcase_40 AC 320 ms
58,036 KB
testcase_41 AC 327 ms
57,992 KB
testcase_42 AC 327 ms
58,196 KB
testcase_43 AC 325 ms
58,260 KB
testcase_44 AC 321 ms
57,976 KB
testcase_45 AC 316 ms
57,900 KB
testcase_46 AC 316 ms
57,948 KB
testcase_47 AC 323 ms
58,020 KB
testcase_48 AC 318 ms
57,884 KB
testcase_49 WA -
testcase_50 AC 319 ms
58,144 KB
testcase_51 AC 314 ms
58,164 KB
testcase_52 AC 317 ms
58,232 KB
testcase_53 AC 327 ms
58,056 KB
testcase_54 AC 313 ms
58,324 KB
testcase_55 AC 313 ms
58,100 KB
testcase_56 AC 307 ms
106,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
from scipy.optimize import linprog
u,v,w,x,y = map(int,input().split())
c = [-1, -1, -1, -1, -1]
A = [[1, 0, 0, 1, 1], [1, 1, 0, 0, 1], [1, 1, 1, 0, 0], [0, 1, 1, 1, 0], [0, 0, 1, 1, 1]]
b = [u, v, w, x, y]
ans = linprog(c, A_ub=A, b_ub=b)
print(int(-ans.fun + 0.001))
0