結果

問題 No.1199 お菓子配り-2
ユーザー Kiri8128Kiri8128
提出日時 2020-08-28 21:57:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 232 ms / 1,000 ms
コード長 162 bytes
コンパイル時間 567 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,400 KB
最終ジャッジ日時 2023-08-08 22:39:41
合計ジャッジ時間 10,954 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 14 ms
7,772 KB
testcase_02 AC 14 ms
7,884 KB
testcase_03 AC 70 ms
7,836 KB
testcase_04 AC 151 ms
8,164 KB
testcase_05 AC 19 ms
7,920 KB
testcase_06 AC 22 ms
7,828 KB
testcase_07 AC 79 ms
7,892 KB
testcase_08 AC 104 ms
8,200 KB
testcase_09 AC 68 ms
7,840 KB
testcase_10 AC 29 ms
7,864 KB
testcase_11 AC 57 ms
7,984 KB
testcase_12 AC 56 ms
8,260 KB
testcase_13 AC 29 ms
7,944 KB
testcase_14 AC 27 ms
7,824 KB
testcase_15 AC 24 ms
7,984 KB
testcase_16 AC 100 ms
8,324 KB
testcase_17 AC 56 ms
7,888 KB
testcase_18 AC 108 ms
8,240 KB
testcase_19 AC 39 ms
7,944 KB
testcase_20 AC 175 ms
8,320 KB
testcase_21 AC 115 ms
8,296 KB
testcase_22 AC 70 ms
7,948 KB
testcase_23 AC 93 ms
7,888 KB
testcase_24 AC 119 ms
7,888 KB
testcase_25 AC 30 ms
7,832 KB
testcase_26 AC 130 ms
8,248 KB
testcase_27 AC 107 ms
8,396 KB
testcase_28 AC 229 ms
8,316 KB
testcase_29 AC 232 ms
8,356 KB
testcase_30 AC 224 ms
8,260 KB
testcase_31 AC 227 ms
8,276 KB
testcase_32 AC 228 ms
8,208 KB
testcase_33 AC 230 ms
8,268 KB
testcase_34 AC 223 ms
8,264 KB
testcase_35 AC 227 ms
8,196 KB
testcase_36 AC 228 ms
8,332 KB
testcase_37 AC 231 ms
8,364 KB
testcase_38 AC 230 ms
8,400 KB
testcase_39 AC 223 ms
8,264 KB
testcase_40 AC 227 ms
8,200 KB
testcase_41 AC 229 ms
8,304 KB
testcase_42 AC 225 ms
8,272 KB
testcase_43 AC 225 ms
8,296 KB
testcase_44 AC 227 ms
8,264 KB
testcase_45 AC 226 ms
8,268 KB
testcase_46 AC 227 ms
8,204 KB
testcase_47 AC 228 ms
8,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
pre = 0
ans = 0
for _ in range(N):
    a = sum(map(int, input().split()))
    ans += max(pre - a, 0)
    pre = a
print(ans + pre)
0