結果

問題 No.1199 お菓子配り-2
ユーザー SoratopSoratop
提出日時 2020-11-07 18:32:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 234 ms / 1,000 ms
コード長 109 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,392 KB
最終ジャッジ日時 2023-09-29 20:44:28
合計ジャッジ時間 12,859 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,984 KB
testcase_01 AC 14 ms
7,732 KB
testcase_02 AC 14 ms
7,788 KB
testcase_03 AC 72 ms
7,840 KB
testcase_04 AC 153 ms
8,124 KB
testcase_05 AC 18 ms
7,916 KB
testcase_06 AC 22 ms
7,964 KB
testcase_07 AC 80 ms
7,804 KB
testcase_08 AC 105 ms
8,136 KB
testcase_09 AC 69 ms
7,820 KB
testcase_10 AC 27 ms
7,792 KB
testcase_11 AC 56 ms
7,884 KB
testcase_12 AC 54 ms
8,212 KB
testcase_13 AC 28 ms
7,880 KB
testcase_14 AC 26 ms
7,736 KB
testcase_15 AC 24 ms
7,824 KB
testcase_16 AC 102 ms
8,200 KB
testcase_17 AC 56 ms
7,736 KB
testcase_18 AC 107 ms
7,788 KB
testcase_19 AC 39 ms
7,920 KB
testcase_20 AC 178 ms
7,836 KB
testcase_21 AC 117 ms
8,192 KB
testcase_22 AC 69 ms
7,796 KB
testcase_23 AC 92 ms
8,180 KB
testcase_24 AC 119 ms
8,344 KB
testcase_25 AC 30 ms
7,848 KB
testcase_26 AC 131 ms
8,228 KB
testcase_27 AC 108 ms
8,224 KB
testcase_28 AC 231 ms
8,320 KB
testcase_29 AC 233 ms
8,220 KB
testcase_30 AC 234 ms
8,216 KB
testcase_31 AC 231 ms
8,228 KB
testcase_32 AC 231 ms
8,320 KB
testcase_33 AC 231 ms
8,144 KB
testcase_34 AC 231 ms
8,392 KB
testcase_35 AC 231 ms
8,320 KB
testcase_36 AC 231 ms
8,140 KB
testcase_37 AC 229 ms
8,324 KB
testcase_38 AC 231 ms
8,308 KB
testcase_39 AC 231 ms
8,380 KB
testcase_40 AC 232 ms
8,300 KB
testcase_41 AC 231 ms
8,332 KB
testcase_42 AC 233 ms
8,300 KB
testcase_43 AC 231 ms
8,212 KB
testcase_44 AC 231 ms
8,372 KB
testcase_45 AC 228 ms
8,208 KB
testcase_46 AC 228 ms
8,348 KB
testcase_47 AC 229 ms
8,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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