結果

問題 No.1199 お菓子配り-2
ユーザー SoratopSoratop
提出日時 2020-11-07 18:30:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 232 ms / 1,000 ms
コード長 126 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 8,356 KB
最終ジャッジ日時 2023-09-29 20:44:04
合計ジャッジ時間 15,931 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,748 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 15 ms
7,984 KB
testcase_03 AC 70 ms
7,796 KB
testcase_04 AC 152 ms
8,196 KB
testcase_05 AC 19 ms
7,944 KB
testcase_06 AC 22 ms
7,800 KB
testcase_07 AC 82 ms
7,832 KB
testcase_08 AC 106 ms
8,228 KB
testcase_09 AC 70 ms
7,812 KB
testcase_10 AC 30 ms
7,828 KB
testcase_11 AC 58 ms
7,860 KB
testcase_12 AC 57 ms
8,236 KB
testcase_13 AC 30 ms
7,892 KB
testcase_14 AC 28 ms
7,828 KB
testcase_15 AC 26 ms
7,824 KB
testcase_16 AC 103 ms
8,236 KB
testcase_17 AC 58 ms
7,784 KB
testcase_18 AC 109 ms
7,752 KB
testcase_19 AC 40 ms
7,968 KB
testcase_20 AC 180 ms
7,796 KB
testcase_21 AC 118 ms
8,180 KB
testcase_22 AC 71 ms
7,896 KB
testcase_23 AC 93 ms
8,328 KB
testcase_24 AC 121 ms
8,268 KB
testcase_25 AC 31 ms
7,772 KB
testcase_26 AC 133 ms
8,308 KB
testcase_27 AC 109 ms
8,288 KB
testcase_28 AC 231 ms
8,308 KB
testcase_29 AC 230 ms
8,236 KB
testcase_30 AC 229 ms
8,212 KB
testcase_31 AC 230 ms
8,316 KB
testcase_32 AC 231 ms
8,184 KB
testcase_33 AC 231 ms
8,324 KB
testcase_34 AC 232 ms
8,236 KB
testcase_35 AC 229 ms
8,236 KB
testcase_36 AC 230 ms
8,296 KB
testcase_37 AC 231 ms
8,288 KB
testcase_38 AC 231 ms
8,356 KB
testcase_39 AC 231 ms
8,232 KB
testcase_40 AC 230 ms
8,228 KB
testcase_41 AC 231 ms
8,356 KB
testcase_42 AC 231 ms
8,316 KB
testcase_43 AC 231 ms
8,184 KB
testcase_44 AC 232 ms
8,236 KB
testcase_45 AC 232 ms
8,292 KB
testcase_46 AC 230 ms
8,348 KB
testcase_47 AC 229 ms
8,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
a=b=0
for i in range(n):
    c=sum(map(int,input().split()))
    a+=max(b-c,0)
    b=c
print(a+b)
0