提出 #74238034


ソースコード 拡げる

h, w = map(int, input().split())
ans = 0
for i in range(h):
    S = input()
    for j in range(w):
        if S[j] == "#":
            ans += 1
print(ans)

提出情報

提出日時
問題 B - Pawn on a Grid
ユーザ Ichijo_Seiji
言語 Python (PyPy 3.11-v7.3.20)
得点 100
コード長 161 Byte
結果 AC
実行時間 54 ms
メモリ 80016 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 12
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
example_00.txt AC 54 ms 79644 KiB
example_01.txt AC 53 ms 79760 KiB
example_02.txt AC 53 ms 79972 KiB
hand_00.txt AC 53 ms 79696 KiB
hand_01.txt AC 52 ms 80016 KiB
hand_02.txt AC 52 ms 79964 KiB
random_00.txt AC 52 ms 79644 KiB
random_01.txt AC 52 ms 79784 KiB
random_02.txt AC 52 ms 79748 KiB
random_03.txt AC 52 ms 79976 KiB
random_04.txt AC 52 ms 79444 KiB
random_05.txt AC 52 ms 79904 KiB