結果
| 問題 |
No.239 にゃんぱすー
|
| ユーザー |
taba
|
| 提出日時 | 2016-04-13 19:05:12 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 7,296 KB |
| 最終ジャッジ日時 | 2024-10-04 07:46:02 |
| 合計ジャッジ時間 | 2,183 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
n=input() a=[raw_input().split()for _ in[0]*n] b=[list(set(i))==["nyanpass","-"]for i in[[a[i][j]for i in range(n)]for j in range(n)]] if sum(b)-1: print -1 else: print b.index(True)+1
taba