結果
| 問題 | No.3657 Gathering Stones |
| コンテスト | |
| ユーザー |
Lyrica
|
| 提出日時 | 2026-08-30 14:22:45 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 2,000 ms |
| + 19µs | |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 96,488 KB |
| 実行使用メモリ | 83,456 KB |
| 最終ジャッジ日時 | 2026-08-30 14:23:32 |
| 合計ジャッジ時間 | 6,307 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 57 |
ソースコード
n, m = map(int, input().split())
s = [input() for _ in range(n)]
def count_stones_for_column(i):
return sum([1 for j in s if j[i]=="#"])
stones_for_each_column = [count_stones_for_column(i) for i in range(m)]
def print_stones_for_row(i):
stones = sum([1 for j in stones_for_each_column if j>i])
print("#"*stones+"."*(m-stones))
for i in range(n):
print_stones_for_row(i)
Lyrica