提出 #76929706


ソースコード 拡げる

h,w = map(int,input().split())
ans = 0
for _ in range(h):
    s = list(input())
    ans += s.count("#")
print(ans)

提出情報

提出日時
問題 B - Pawn on a Grid
ユーザ TravelSashimi
言語 Python (CPython 3.13.7)
得点 100
コード長 119 Byte
結果 AC
実行時間 12 ms
メモリ 9004 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 12 ms 8824 KiB
example_01.txt AC 12 ms 8824 KiB
example_02.txt AC 12 ms 8892 KiB
hand_00.txt AC 12 ms 8908 KiB
hand_01.txt AC 12 ms 8896 KiB
hand_02.txt AC 12 ms 8932 KiB
random_00.txt AC 12 ms 9004 KiB
random_01.txt AC 12 ms 8932 KiB
random_02.txt AC 12 ms 8892 KiB
random_03.txt AC 12 ms 8804 KiB
random_04.txt AC 12 ms 8992 KiB
random_05.txt AC 12 ms 8916 KiB