結果
問題 |
No.239 にゃんぱすー
|
ユーザー |
![]() |
提出日時 | 2020-08-09 00:56:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-02 11:44:37 |
合計ジャッジ時間 | 2,361 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
N = int(input().strip()) lst = [0 for _ in range(N)] for i in range(N): for n, j in enumerate(input().strip().split(' ')): if j == 'nyanpass': lst[n] += 1 lst2 = [[n, i] for n, i in enumerate(lst) if i == N - 1] if len(lst2) == 1: print(str(lst2[0][0] + 1)) else: print('-1')