結果
| 問題 | No.3657 Gathering Stones |
| コンテスト | |
| ユーザー |
prd_xxx
|
| 提出日時 | 2026-08-30 13:43:22 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 2,000 ms |
| + 916µs | |
| コード長 | 357 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,728 KB |
| 実行使用メモリ | 83,456 KB |
| 最終ジャッジ日時 | 2026-08-30 13:43:34 |
| 合計ジャッジ時間 | 6,175 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 57 |
ソースコード
N,M = map(int,input().split())
S = [input() for i in range(N)]
cols = []
for col in zip(*S):
c = col.count('#')
cols.append(c)
T = [['.']*M for _ in range(N)]
for j,c in enumerate(cols):
for i in range(c):
T[i][j] = '#'
rows = []
for row in T:
c = row.count('#')
rows.append(c)
for c in rows:
print('#'*c + '.'*(M-c))
prd_xxx