結果
| 問題 |
No.239 にゃんぱすー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-09-02 10:04:42 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 2,000 ms |
| コード長 | 242 bytes |
| コンパイル時間 | 245 ms |
| コンパイル使用メモリ | 7,168 KB |
| 実行使用メモリ | 8,704 KB |
| 最終ジャッジ日時 | 2024-07-18 17:36:17 |
| 合計ジャッジ時間 | 2,006 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
#!/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()