結果
| 問題 | No.3707 Unique Ticket |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2026-09-11 21:23:05 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 2,000 ms |
| + 304µs | |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 62,848 KB |
| 最終ジャッジ日時 | 2026-09-11 21:23:11 |
| 合計ジャッジ時間 | 3,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 45 |
ソースコード
h, w = list(map(int, input().split()))
S = [input() for _ in range(h)]
A = [0] * w
for y in range(h):
for x in range(w):
if S[y][x] == "o":
A[x] += 1
ans = 0
for y in range(h):
f = 1
if not "o" in S[y]:
f = 0
for x in range(w):
if S[y][x] == "o" and A[x] > 1:
f = 0
ans += f
print(ans)
kidodesu