結果

問題 No.239 にゃんぱすー
コンテスト
ユーザー yuppe19 😺
提出日時 2015-09-02 10:04:42
言語 Python2
(2.7.18)
コンパイル:
python2x -m py_compile _filename_
実行:
/usr/bin/python2x Main.pyc
結果
AC  
実行時間 13 ms / 2,000 ms
+ 124µs
コード長 242 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 8,576 KB
最終ジャッジ日時 2026-07-17 19:55:14
合計ジャッジ時間 2,071 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/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