結果
問題 | No.239 にゃんぱすー |
ユーザー |
![]() |
提出日時 | 2020-01-13 16:29:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 537 ms / 2,000 ms |
コード長 | 348 bytes |
コンパイル時間 | 365 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 44,584 KB |
最終ジャッジ日時 | 2024-12-17 22:42:45 |
合計ジャッジ時間 | 20,837 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
import numpy as npN=int(input())a = [input().split() for l in range(N)]b=np.array(a).T.tolist()flag_list=[]for i in b:flag=Truefor j in i:if j!='-' and j!='nyanpass':flag=Falsebreakflag_list.append(flag)if flag_list.count(True)==1:print(flag_list.index(True)+1)else:print(-1)