結果

問題 No.239 にゃんぱすー
ユーザー brthyyjpbrthyyjp
提出日時 2021-08-06 17:25:42
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 294 bytes
コンパイル時間 616 ms
コンパイル使用メモリ 81,780 KB
実行使用メモリ 64,744 KB
最終ジャッジ日時 2023-10-17 01:56:16
合計ジャッジ時間 5,003 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,532 KB
testcase_01 AC 37 ms
53,532 KB
testcase_02 AC 36 ms
53,532 KB
testcase_03 AC 35 ms
53,532 KB
testcase_04 AC 36 ms
53,532 KB
testcase_05 AC 36 ms
53,532 KB
testcase_06 AC 37 ms
53,532 KB
testcase_07 AC 37 ms
53,532 KB
testcase_08 AC 41 ms
53,532 KB
testcase_09 AC 37 ms
53,532 KB
testcase_10 AC 38 ms
53,532 KB
testcase_11 AC 36 ms
53,532 KB
testcase_12 AC 36 ms
53,532 KB
testcase_13 AC 42 ms
59,872 KB
testcase_14 MLE -
testcase_15 AC 40 ms
59,872 KB
testcase_16 AC 40 ms
59,872 KB
testcase_17 AC 41 ms
59,872 KB
testcase_18 MLE -
testcase_19 AC 43 ms
61,924 KB
testcase_20 AC 44 ms
61,952 KB
testcase_21 AC 41 ms
61,920 KB
testcase_22 AC 43 ms
61,924 KB
testcase_23 AC 43 ms
61,940 KB
testcase_24 AC 42 ms
61,920 KB
testcase_25 AC 43 ms
61,920 KB
testcase_26 AC 42 ms
61,920 KB
testcase_27 AC 35 ms
53,532 KB
testcase_28 AC 35 ms
53,532 KB
testcase_29 AC 36 ms
53,532 KB
testcase_30 MLE -
testcase_31 AC 40 ms
59,872 KB
testcase_32 MLE -
testcase_33 AC 41 ms
59,872 KB
testcase_34 AC 42 ms
61,924 KB
testcase_35 AC 43 ms
61,920 KB
testcase_36 AC 43 ms
61,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
C = [0]*n
for i in range(n):
    A = list(map(str, input().split()))
    for j, a in enumerate(A):
        if a == 'nyanpass':
            C[j] += 1
ans = []
for i in range(n):
    if C[i] == n-1:
        ans.append(i+1)
if len(ans) == 1:
    print(ans[0])
else:
    print(-1)
0