結果
| 問題 | No.358 も~っと!門松列 |
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-06-17 16:56:40 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2026-09-07 12:06:26 |
| 合計ジャッジ時間 | 2,398 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 23 |
ソースコード
#nyanpass
N=int(input())
a=[[i for i in input().split()] for i in range(N)]
R=[0]
i=1
while i <N:
if a[0][i]=="nyanpass":
R.append(i)
i+=1
i=1
while i<N and len(R)>0:
j=0
while j<len(R):
if a[i][R[j]]!="nyanpass":
R.pop(j)
j-=1
j+=1
i+=1
if len(R)!=1:
print(-1)
else:
print(R[0])
rocoder