結果

問題 No.1199 お菓子配り-2
ユーザー tktk_snsntktk_snsn
提出日時 2022-06-07 00:42:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 243 ms / 1,000 ms
コード長 238 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 9,952 KB
最終ジャッジ日時 2023-10-21 03:43:40
合計ジャッジ時間 15,120 ms
ジャッジサーバーID
(参考情報)
judge9 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
9,836 KB
testcase_01 AC 30 ms
9,836 KB
testcase_02 AC 31 ms
9,836 KB
testcase_03 AC 87 ms
9,888 KB
testcase_04 AC 169 ms
9,920 KB
testcase_05 AC 35 ms
9,920 KB
testcase_06 AC 38 ms
9,868 KB
testcase_07 AC 95 ms
9,928 KB
testcase_08 AC 119 ms
9,932 KB
testcase_09 AC 86 ms
9,920 KB
testcase_10 AC 43 ms
9,872 KB
testcase_11 AC 72 ms
9,892 KB
testcase_12 AC 70 ms
9,916 KB
testcase_13 AC 44 ms
9,920 KB
testcase_14 AC 42 ms
9,864 KB
testcase_15 AC 39 ms
9,864 KB
testcase_16 AC 116 ms
9,928 KB
testcase_17 AC 72 ms
9,876 KB
testcase_18 AC 119 ms
9,888 KB
testcase_19 AC 54 ms
9,852 KB
testcase_20 AC 190 ms
9,948 KB
testcase_21 AC 129 ms
9,888 KB
testcase_22 AC 82 ms
9,868 KB
testcase_23 AC 102 ms
9,884 KB
testcase_24 AC 131 ms
9,884 KB
testcase_25 AC 44 ms
9,892 KB
testcase_26 AC 141 ms
9,940 KB
testcase_27 AC 120 ms
9,952 KB
testcase_28 AC 240 ms
9,948 KB
testcase_29 AC 240 ms
9,948 KB
testcase_30 AC 241 ms
9,948 KB
testcase_31 AC 240 ms
9,948 KB
testcase_32 AC 238 ms
9,948 KB
testcase_33 AC 243 ms
9,948 KB
testcase_34 AC 239 ms
9,948 KB
testcase_35 AC 238 ms
9,948 KB
testcase_36 AC 239 ms
9,948 KB
testcase_37 AC 243 ms
9,948 KB
testcase_38 AC 243 ms
9,948 KB
testcase_39 AC 239 ms
9,948 KB
testcase_40 AC 239 ms
9,948 KB
testcase_41 AC 242 ms
9,948 KB
testcase_42 AC 241 ms
9,948 KB
testcase_43 AC 240 ms
9,948 KB
testcase_44 AC 241 ms
9,948 KB
testcase_45 AC 242 ms
9,948 KB
testcase_46 AC 239 ms
9,948 KB
testcase_47 AC 239 ms
9,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

N, M = map(int, input().split())
e = 0
o = 0
for _ in range(N):
    A = sum(map(int, input().split()))
    e, o = max(e, o - A), max(o, e + A)

print(max(e, o))
0