結果

問題 No.239 にゃんぱすー
ユーザー utsumidaisuke
提出日時 2018-12-07 14:47:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,032 KB
最終ジャッジ日時 2024-09-14 03:21:57
合計ジャッジ時間 3,118 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

LS = []
for i in range(n):
    LS.append(input().split())

print(LS)

num = 0
N = n
for i in range(n):
    cnt = 0
    for j in range(N):
        if LS[j][i] == 'nyanpass':
            cnt += 1
    if cnt == n-1:
        num += 1

if num == 1:
    print("1")
else: 
    print(-1)
0