結果
| 問題 | No.712 赤旗 |
| コンテスト | |
| ユーザー |
hooooyaert
|
| 提出日時 | 2018-07-21 19:50:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 701 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 43,940 KB |
| 最終ジャッジ日時 | 2024-12-26 04:58:25 |
| 合計ジャッジ時間 | 4,471 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 5 |
ソースコード
import numpy as np
def count(N,M):
num=0
for i in range(N):
for j in range(M):
if A[i][j] == 'W':
num += 1
return num
"""
#入力ゾーン
num =0
A = []
matrix = []
with open('712_1.txt','r') as f:
for line in f:
num+=1
if num==1:
matrix=line.split()
row = int(matrix[0])
column = int(matrix[1])
else:
A.append(str(line.strip()))
"""
#入力(手入力)
matrix = input().split()
A = []
row = int(matrix[0])
column = int(matrix[1])
for i in range(int(matrix[0])):
A.append(input())
#出力ゾーン
print('塗る回数',count(row,column))
hooooyaert