Submission #36956563


Source Code Expand

h, m = map(int, input().split(" "))
ans = 0
for _ in range(h):
    s = [1 if x=="#" else 0 for x in list(input())]
    ans += sum(s)

print(ans)

Submission Info

Submission Time
Task A - Pawn on a Grid
User minjinaffa
Language PyPy3 (7.3.0)
Score 100
Code Size 152 Byte
Status AC
Exec Time 61 ms
Memory 61700 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt
Case Name Status Exec Time Memory
example_00.txt AC 61 ms 61468 KiB
example_01.txt AC 44 ms 61560 KiB
example_02.txt AC 48 ms 61628 KiB
hand_00.txt AC 45 ms 61564 KiB
hand_01.txt AC 53 ms 61600 KiB
hand_02.txt AC 48 ms 61576 KiB
random_00.txt AC 50 ms 61528 KiB
random_01.txt AC 47 ms 61648 KiB
random_02.txt AC 49 ms 61508 KiB
random_03.txt AC 47 ms 61424 KiB
random_04.txt AC 45 ms 61700 KiB
random_05.txt AC 48 ms 61624 KiB