結果

問題 No.239 にゃんぱすー
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-09-02 10:04:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,472 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2023-09-25 21:55:06
合計ジャッジ時間 2,651 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,188 KB
testcase_01 AC 13 ms
6,284 KB
testcase_02 AC 12 ms
6,168 KB
testcase_03 AC 12 ms
6,420 KB
testcase_04 AC 13 ms
6,248 KB
testcase_05 AC 12 ms
6,184 KB
testcase_06 AC 12 ms
6,188 KB
testcase_07 AC 13 ms
6,344 KB
testcase_08 AC 13 ms
6,392 KB
testcase_09 AC 14 ms
6,192 KB
testcase_10 AC 13 ms
6,328 KB
testcase_11 AC 13 ms
6,276 KB
testcase_12 AC 14 ms
6,496 KB
testcase_13 AC 13 ms
6,376 KB
testcase_14 AC 14 ms
6,684 KB
testcase_15 AC 14 ms
6,520 KB
testcase_16 AC 14 ms
6,568 KB
testcase_17 AC 16 ms
6,832 KB
testcase_18 AC 15 ms
6,652 KB
testcase_19 AC 16 ms
6,772 KB
testcase_20 AC 16 ms
6,724 KB
testcase_21 AC 17 ms
6,784 KB
testcase_22 AC 17 ms
7,064 KB
testcase_23 AC 17 ms
7,168 KB
testcase_24 AC 19 ms
7,660 KB
testcase_25 AC 20 ms
7,868 KB
testcase_26 AC 20 ms
7,960 KB
testcase_27 AC 13 ms
6,332 KB
testcase_28 AC 12 ms
6,396 KB
testcase_29 AC 13 ms
6,412 KB
testcase_30 AC 14 ms
6,444 KB
testcase_31 AC 14 ms
6,728 KB
testcase_32 AC 15 ms
6,700 KB
testcase_33 AC 16 ms
6,712 KB
testcase_34 AC 16 ms
7,076 KB
testcase_35 AC 19 ms
7,660 KB
testcase_36 AC 19 ms
8,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from collections import Counter
n = int(raw_input())
cnt = map(Counter, zip(*(raw_input().split() for _ in xrange(n))))
arr = [i+1 for i, c in enumerate(cnt) if c['nyanpass'] == n-1]
print -1 if len(arr) != 1 else arr.pop()
0