結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,784 KB
testcase_01 AC 57 ms
18,716 KB
testcase_02 AC 59 ms
22,780 KB
testcase_03 AC 58 ms
18,700 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 58 ms
22,728 KB
testcase_07 AC 57 ms
20,884 KB
testcase_08 AC 58 ms
20,804 KB
testcase_09 AC 59 ms
20,904 KB
testcase_10 AC 61 ms
22,844 KB
testcase_11 WA -
testcase_12 AC 58 ms
20,688 KB
testcase_13 AC 58 ms
20,692 KB
testcase_14 AC 58 ms
20,800 KB
testcase_15 AC 59 ms
20,752 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 58 ms
20,784 KB
testcase_21 WA -
testcase_22 AC 60 ms
20,612 KB
testcase_23 AC 59 ms
20,708 KB
testcase_24 AC 59 ms
20,812 KB
testcase_25 AC 60 ms
18,728 KB
testcase_26 WA -
testcase_27 AC 58 ms
22,824 KB
testcase_28 AC 59 ms
24,880 KB
testcase_29 AC 59 ms
20,800 KB
testcase_30 AC 59 ms
20,684 KB
testcase_31 AC 59 ms
20,684 KB
testcase_32 AC 59 ms
20,776 KB
testcase_33 WA -
testcase_34 AC 59 ms
20,792 KB
testcase_35 AC 61 ms
20,788 KB
testcase_36 AC 61 ms
22,796 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!=i){
                        Console.WriteLine(-1);
                        return;
                    }
                }
            }
        }
        Console.WriteLine(r+1);
    }
}
0