結果
問題 |
No.239 にゃんぱすー
|
ユーザー |
![]() |
提出日時 | 2017-09-24 22:35:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-11-14 07:33:11 |
合計ジャッジ時間 | 2,142 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 26 WA * 7 |
ソースコード
def ILLINRows(N): return [input().split() for i in range(N)] def transpose(matrix): if matrix ==[]: return [] if matrix[0] ==1: return list(map(list, zip(matrix))) else: return list(map(list, zip(*matrix))) n = int(input()) twoArray=ILLINRows(n) twoArray=transpose(twoArray) for i in enumerate(twoArray): if i[1].count("nyanpass")==n-1: print(i[0]+1) exit() print(-1)