結果

問題 No.239 にゃんぱすー
ユーザー mencottonmencotton
提出日時 2017-12-27 22:52:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,066 bytes
コンパイル時間 3,310 ms
コンパイル使用メモリ 102,524 KB
実行使用メモリ 22,936 KB
最終ジャッジ日時 2023-08-23 07:26:53
合計ジャッジ時間 6,499 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,624 KB
testcase_01 AC 57 ms
20,808 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 57 ms
20,876 KB
testcase_05 WA -
testcase_06 AC 59 ms
22,664 KB
testcase_07 AC 57 ms
20,572 KB
testcase_08 AC 59 ms
20,656 KB
testcase_09 WA -
testcase_10 AC 58 ms
22,780 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 59 ms
22,892 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 60 ms
20,648 KB
testcase_21 WA -
testcase_22 AC 61 ms
22,760 KB
testcase_23 AC 60 ms
20,628 KB
testcase_24 AC 60 ms
20,572 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 59 ms
20,720 KB
testcase_28 AC 59 ms
22,912 KB
testcase_29 WA -
testcase_30 AC 58 ms
22,720 KB
testcase_31 AC 58 ms
22,724 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 58 ms
20,780 KB
testcase_35 WA -
testcase_36 AC 61 ms
20,636 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.Collections.Generic;
using System.Linq;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            bool[] ret = new bool[n];
            for (int i = 0; i < n; i++) ret[i] = true;
            for (int i = 0; i < n; i++)
            {
                string[] s = Console.ReadLine().Split();
                for (int j = 0; j < n; j++)
                {
                    if (i == j) continue;
                    else if (!(s[j] == "nyanpass" || s[j] == "-")) ret[j] = false;
                }
            }
            int a = -1;
            for (int i = 0; i < n; i++)
            {
                if (ret[i])
                {
                    if (a == -1)
                    {
                        a = i;
                    }
                    else
                    {
                        a = 999;
                    }
                }
            }
            Console.WriteLine(a <= 100 ? a : -1);
        }
    }
}
0