結果
| 問題 |
No.43 野球の試合
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-30 08:12:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 396 bytes |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-09 02:37:21 |
| 合計ジャッジ時間 | 1,226 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 2 |
ソースコード
n = int(input())
matrix = []
for _ in range(n):
matrix.append(list(input()))
for y in range(n):
for x in range(n):
if matrix[y][x] == '-':
matrix[y][x] = 'o'
matrix[x][y] = 'x'
rank = []
for m in matrix:
rank.append(m.count('o'))
r = rank[0]
rank_s = set(rank)
rank_t = list(rank_s)
rank_u = sorted(rank_t, reverse=True)
print(rank_u.index(r) + 1)