結果
問題 | No.239 にゃんぱすー |
ユーザー |
|
提出日時 | 2021-07-10 19:41:19 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 82,040 KB |
実行使用メモリ | 61,056 KB |
最終ジャッジ日時 | 2024-07-02 02:46:51 |
合計ジャッジ時間 | 3,827 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
N = int(input())A = [input().split() for _ in range(N)]sonmin_saying = [[a[i] for j, a in enumerate(A) if i != j] for i in range(N)]rentyonpoi = [all([gr == "nyanpass" for gr in a]) for a in sonmin_saying]if rentyonpoi.count(True) == 1:print(rentyonpoi.index(True) + 1)else:print(-1)