結果
問題 |
No.239 にゃんぱすー
|
ユーザー |
|
提出日時 | 2022-01-05 21:35:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-11-06 08:51:31 |
合計ジャッジ時間 | 2,284 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
N = int(input()) ls = [input().split() for i in range(N)] cntN = [0]*N for i in range(N): for j in range(N): if i == j: continue if ls[i][j] == 'nyanpass': cntN[j] += 1 if cntN.count(N-1) == 1: print(cntN.index(N-1)+1) else: print(-1)