結果
| 問題 | No.3707 Unique Ticket |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2026-09-11 21:28:49 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 36 ms / 2,000 ms |
| + 679µs | |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 80,512 KB |
| 実行使用メモリ | 64,896 KB |
| 最終ジャッジ日時 | 2026-09-11 21:29:07 |
| 合計ジャッジ時間 | 3,907 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 45 |
ソースコード
from collections import Counter
n, m = map(int, input().split())
s = [input() for _ in range(n)]
f = [0] * m
for si in s:
for j, c in enumerate(si):
if c == 'o':
f[j] += 1
ans = 0
for si in s:
ans += all(c == 'x' or f[j] == 1 for j, c in enumerate(si)) and si.count('o') >= 1
print(ans)
Kude