結果
| 問題 |
No.239 にゃんぱすー
|
| ユーザー |
𖧱𖦸𖥩𖥣𖥩𖥣
|
| 提出日時 | 2024-05-10 15:40:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-20 03:55:26 |
| 合計ジャッジ時間 | 3,206 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 33 |
ソースコード
n = int(input()) la = [True]*n for i in range(n): ls = input().split() for j in range(n): if la[j] and ls[j] != "-" and ls[j] != "nyanpass": la[j] = False if True in la: if la.count(True) == 1: print(la.index(True)+1) else: print(-1) else: print(-1)
𖧱𖦸𖥩𖥣𖥩𖥣