結果

問題 No.239 にゃんぱすー
ユーザー minezumuminezumu
提出日時 2018-07-24 09:53:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 10,896 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-09-03 21:02:48
合計ジャッジ時間 2,299 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 15 ms
7,836 KB
testcase_03 AC 16 ms
7,832 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,832 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 16 ms
7,828 KB
testcase_13 WA -
testcase_14 AC 16 ms
7,924 KB
testcase_15 AC 16 ms
7,944 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 17 ms
7,820 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 17 ms
7,788 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 17 ms
7,828 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 16 ms
7,804 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 17 ms
7,788 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 18 ms
7,792 KB
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
B = []
C = []
for i in range(N) :
    A = list(map(str,input().split()))
    if "nyanpass" in A :
        if A[i] == "nyanpass" :
            B.append(i+1)
    else :
        if A[i] == "-" :
            B.append(i+1)
for j in range(N) :
    c = B.count(j+1)
    C.append(c)
for k in range(N) :
    if C.count(max(C)) >= 2 :
        print(-1)
    else :
        if C[k] == max(C) :
            print(k+1)

0