Submission #19722942


Source Code Expand

Copy
H, W = map(int, input().split())
A = [input() for i in range(H)]
A_list = []
for i in A:
    A_list += [*map(int,i.split())]
minimum = min(A_list)
print(sum(A_list)-minimum*len(A_list))

Submission Info

Submission Time
Task B - Blocks on Grid
User furukawa3152
Language Python (3.8.2)
Score 200
Code Size 191 Byte
Status AC
Exec Time 26 ms
Memory 9208 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_11.txt, random_12.txt, random_13.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 23 ms 9128 KB
random_02.txt AC 17 ms 9116 KB
random_03.txt AC 22 ms 8888 KB
random_04.txt AC 18 ms 9172 KB
random_05.txt AC 23 ms 8876 KB
random_06.txt AC 17 ms 9012 KB
random_07.txt AC 18 ms 9044 KB
random_08.txt AC 21 ms 9184 KB
random_11.txt AC 18 ms 9208 KB
random_12.txt AC 23 ms 9204 KB
random_13.txt AC 21 ms 9188 KB
sample_01.txt AC 17 ms 8884 KB
sample_02.txt AC 26 ms 9044 KB
sample_03.txt AC 19 ms 8888 KB