結果

問題 No.239 にゃんぱすー
ユーザー さいどさいど
提出日時 2016-11-30 21:15:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 225 bytes
コンパイル時間 495 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 8,200 KB
最終ジャッジ日時 2023-08-18 10:06:18
合計ジャッジ時間 2,365 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 15 ms
7,812 KB
testcase_03 AC 15 ms
7,700 KB
testcase_04 AC 16 ms
7,760 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 16 ms
7,792 KB
testcase_09 AC 15 ms
7,880 KB
testcase_10 AC 14 ms
7,704 KB
testcase_11 AC 15 ms
7,740 KB
testcase_12 AC 15 ms
7,736 KB
testcase_13 AC 16 ms
7,796 KB
testcase_14 AC 15 ms
7,724 KB
testcase_15 AC 16 ms
7,704 KB
testcase_16 AC 16 ms
7,872 KB
testcase_17 AC 16 ms
7,788 KB
testcase_18 AC 16 ms
7,704 KB
testcase_19 AC 16 ms
7,756 KB
testcase_20 AC 17 ms
7,868 KB
testcase_21 AC 16 ms
7,872 KB
testcase_22 AC 17 ms
7,852 KB
testcase_23 AC 16 ms
7,872 KB
testcase_24 AC 17 ms
8,200 KB
testcase_25 AC 18 ms
8,084 KB
testcase_26 AC 17 ms
8,180 KB
testcase_27 RE -
testcase_28 RE -
testcase_29 AC 16 ms
7,740 KB
testcase_30 RE -
testcase_31 RE -
testcase_32 AC 16 ms
7,744 KB
testcase_33 AC 16 ms
7,748 KB
testcase_34 RE -
testcase_35 AC 18 ms
7,784 KB
testcase_36 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
array=[[1 if i in ("nyanpass","-") else 0 for i in input().split(" ") ] for _ in range(n)]
nyan=[1 if sum([e[i] for e in array])==n else 0 for i in range(n)]
if sum(nyan)>1:print(-1)
else:print(nyan.index(1)+1)
0