結果
問題 |
No.239 にゃんぱすー
|
ユーザー |
|
提出日時 | 2015-09-09 00:28:04 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 67 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-07-19 05:01:18 |
合計ジャッジ時間 | 1,306 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
N = int(raw_input()) notrenchon = [] for i in xrange(N): A = raw_input().split() for j in xrange(N): if A[j] not in ('nyanpass', '-'): notrenchon.append(j + 1) candset = set([i for i in xrange(1, N+1)]) - set(notrenchon) if len(candset) == 1: print candset.pop() else: print -1