結果
| 問題 | No.3802 Crossword Key |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-11-14 15:02:46 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 488µs | |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 64,632 KB |
| 実行使用メモリ | 59,576 KB |
| 最終ジャッジ日時 | 2026-11-14 15:02:51 |
| 合計ジャッジ時間 | 4,836 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 |
ソースコード
H, W = map(int, input().split())
S = [input() for _ in range(H)]
ans = []
for i in range(H):
for j in range(W):
if S[i][j] == "#": continue
if (i+1 < H and S[i+1][j] == "." and (i == 0 or S[i-1][j] == "#") or
j+1 < W and S[i][j+1] == "." and (j == 0 or S[i][j-1] == "#")):
ans.append((i+1, j+1))
print(len(ans))
for h, w in ans:
print(h, w)
detteiuu