結果
問題 |
No.239 にゃんぱすー
|
ユーザー |
![]() |
提出日時 | 2019-04-30 13:13:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 905 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-12-29 18:48:38 |
合計ジャッジ時間 | 2,986 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
n =int(input()) anslist = [] koiwai_list = [input().split(" ") for i in range(n)] for i in range(n): kotolist = [ koiwai_list[j][i] for j in range(n) ] if kotolist.count("nyanpass") == n-1: anslist.append(i) if len(anslist) == 1: print(anslist[0]+1) else: print(-1)