結果

問題 No.43 野球の試合
ユーザー szkhtsszkhts
提出日時 2021-10-02 08:23:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 852 ms
コンパイル使用メモリ 10,876 KB
実行使用メモリ 7,916 KB
最終ジャッジ日時 2023-09-27 08:28:39
合計ジャッジ時間 1,459 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,892 KB
testcase_01 AC 14 ms
7,916 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 14 ms
7,816 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,812 KB
testcase_06 WA -
testcase_07 AC 13 ms
7,896 KB
testcase_08 WA -
testcase_09 AC 15 ms
7,860 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
table = []
for i in range(n):
    table.append(list(input()))

for i in range(n):
    for j in range(n):
        if table[i][j] == '-':
            table[i][j] = 'o'
            table[j][i] = 'x'

win = 0
win_e = 0
pos = 1
for i in range(n):
    if i == 0:
        win = table[i].count('o')
    else:
        win_e = table[i].count('o')
        if win < win_e:
            pos += 1

print(pos)
0