結果

問題 No.239 にゃんぱすー
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-10 01:13:55
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 695 bytes
コンパイル時間 1,951 ms
コンパイル使用メモリ 99,260 KB
実行使用メモリ 24,852 KB
最終ジャッジ日時 2023-09-25 06:58:50
合計ジャッジ時間 5,900 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,716 KB
testcase_01 AC 57 ms
22,784 KB
testcase_02 AC 57 ms
20,816 KB
testcase_03 AC 57 ms
22,688 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 57 ms
22,648 KB
testcase_07 AC 58 ms
20,644 KB
testcase_08 AC 58 ms
22,624 KB
testcase_09 AC 57 ms
20,644 KB
testcase_10 AC 58 ms
20,788 KB
testcase_11 WA -
testcase_12 AC 57 ms
20,760 KB
testcase_13 AC 58 ms
20,636 KB
testcase_14 AC 58 ms
20,756 KB
testcase_15 AC 58 ms
20,744 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 58 ms
20,584 KB
testcase_21 WA -
testcase_22 AC 57 ms
20,652 KB
testcase_23 AC 57 ms
20,708 KB
testcase_24 AC 61 ms
22,748 KB
testcase_25 AC 61 ms
22,844 KB
testcase_26 WA -
testcase_27 AC 57 ms
18,804 KB
testcase_28 AC 58 ms
20,696 KB
testcase_29 AC 58 ms
22,744 KB
testcase_30 AC 58 ms
20,704 KB
testcase_31 AC 59 ms
22,808 KB
testcase_32 AC 58 ms
20,568 KB
testcase_33 WA -
testcase_34 AC 59 ms
20,724 KB
testcase_35 AC 60 ms
18,664 KB
testcase_36 AC 58 ms
20,832 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class No239{
    static void Main(){
        var n=Int32.Parse(Console.ReadLine());
        int r=-2;
        int y=-1;
        for(int i=0;i<n;++i){
            var a=Console.ReadLine().Split(' ');
            for(int j=0;j<n;++j){
                if(a[j]=="nyanpass"){
                    if(r==-2){
                        r=j;
                        y=i;
                    }
                    else if (r==j)continue;
                    else if(r!=j&&y!=i&&y!=j&&r!=y){
                        Console.WriteLine(-1);
                        return;
                    }
                }
            }
        }
        Console.WriteLine(r+1);
    }
}
0