結果
問題 |
No.2692 How Many Times Reached?
|
ユーザー |
|
提出日時 | 2024-04-30 11:11:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 487 bytes |
コンパイル時間 | 421 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 59,264 KB |
最終ジャッジ日時 | 2024-11-20 05:30:17 |
合計ジャッジ時間 | 3,889 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 WA * 23 |
ソースコード
N=int(input()) S=[input() for i in range(N)] ans=0 for i in range(N): if S[i].count("A")==N-1 and S[i].count(".")==1: ans+=1 for i in range(N): arr=[] for j in range(N): arr.append(S[j][i]) if arr.count("A")==N-1 and S[i].count(".")==1: ans+=1 arr=[] for i in range(N): arr.append(S[i][i]) if arr.count("A")==N-1 and arr.count(".")==1: ans+=1 arr=[] for i in range(N): arr.append(S[i][N-i-1]) if arr.count("A")==N-1 and arr.count(".")==1: ans+=1 print(ans)