結果
問題 | No.239 にゃんぱすー |
ユーザー |
![]() |
提出日時 | 2019-12-03 22:07:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 436 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 85,948 KB |
最終ジャッジ日時 | 2024-11-27 21:03:59 |
合計ジャッジ時間 | 25,290 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 32 MLE * 1 |
ソースコード
import numpy as npimport collectionsn = int(input())a = [input().split() for l in range(n)]arr_a = np.array(a)renindex = []for i in range(arr_a.shape[0]):for j in range(arr_a.shape[1]):if arr_a[i][j] == 'nyanpass':renindex.append(j)cl = collections.Counter(renindex)renkeys = [k for k, v in cl.items() if v == n-1]if len(renkeys) == 1:print(renkeys[0] + 1)else:print(-1)