結果

問題 No.43 野球の試合
ユーザー rocoderrocoder
提出日時 2017-07-27 10:20:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-18 08:45:59
合計ジャッジ時間 1,133 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 29 ms
10,752 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 29 ms
10,752 KB
testcase_06 WA -
testcase_07 AC 27 ms
10,880 KB
testcase_08 WA -
testcase_09 AC 29 ms
10,880 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#baseball
N=int(input())
s=[input() for i in range(N)]
w=[0]*N
for i in range(N):
    cw=0
    cg=0
    for j in range(N):
        if s[i][j]=="o":
            cw+=1
        elif s[i][j]=="-":
            cg+=1
    if i==0:
        cw+=cg
    w[i]=cw
p=1
for i in range(1,N):
    if w[i]>w[0]:
        p+=1
print(p)
0