結果

問題 No.1199 お菓子配り-2
ユーザー pluto77pluto77
提出日時 2020-10-07 11:56:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 230 ms / 1,000 ms
コード長 179 bytes
コンパイル時間 863 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 8,392 KB
最終ジャッジ日時 2023-09-27 09:12:26
合計ジャッジ時間 16,808 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,800 KB
testcase_01 AC 13 ms
7,932 KB
testcase_02 AC 14 ms
7,920 KB
testcase_03 AC 67 ms
8,224 KB
testcase_04 AC 150 ms
8,272 KB
testcase_05 AC 19 ms
8,264 KB
testcase_06 AC 21 ms
7,792 KB
testcase_07 AC 76 ms
8,244 KB
testcase_08 AC 99 ms
8,220 KB
testcase_09 AC 66 ms
8,280 KB
testcase_10 AC 29 ms
8,216 KB
testcase_11 AC 55 ms
8,276 KB
testcase_12 AC 53 ms
8,260 KB
testcase_13 AC 27 ms
7,796 KB
testcase_14 AC 26 ms
7,952 KB
testcase_15 AC 24 ms
8,176 KB
testcase_16 AC 96 ms
8,220 KB
testcase_17 AC 57 ms
8,228 KB
testcase_18 AC 108 ms
8,188 KB
testcase_19 AC 38 ms
8,196 KB
testcase_20 AC 169 ms
8,244 KB
testcase_21 AC 114 ms
8,172 KB
testcase_22 AC 69 ms
8,228 KB
testcase_23 AC 88 ms
8,296 KB
testcase_24 AC 122 ms
8,248 KB
testcase_25 AC 29 ms
8,268 KB
testcase_26 AC 130 ms
8,336 KB
testcase_27 AC 104 ms
8,256 KB
testcase_28 AC 215 ms
8,268 KB
testcase_29 AC 220 ms
8,240 KB
testcase_30 AC 225 ms
8,360 KB
testcase_31 AC 224 ms
8,260 KB
testcase_32 AC 220 ms
8,284 KB
testcase_33 AC 219 ms
8,352 KB
testcase_34 AC 228 ms
8,220 KB
testcase_35 AC 228 ms
8,392 KB
testcase_36 AC 226 ms
8,268 KB
testcase_37 AC 225 ms
8,248 KB
testcase_38 AC 230 ms
8,260 KB
testcase_39 AC 227 ms
8,276 KB
testcase_40 AC 221 ms
8,264 KB
testcase_41 AC 223 ms
8,252 KB
testcase_42 AC 220 ms
8,240 KB
testcase_43 AC 225 ms
8,300 KB
testcase_44 AC 222 ms
8,260 KB
testcase_45 AC 228 ms
8,260 KB
testcase_46 AC 224 ms
8,284 KB
testcase_47 AC 228 ms
8,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1199
N,M=map(int,input().split())
odd=-10**9
even=0
for i in range(N):
 s=sum(list(map(int,input().split())))
 odd=max(odd,even+s)
 even=max(even,odd-s)
print(max(odd,even))
0