結果

問題 No.239 にゃんぱすー
ユーザー keymoonkeymoon
提出日時 2019-02-23 12:53:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 654 bytes
コンパイル時間 4,289 ms
コンパイル使用メモリ 104,832 KB
実行使用メモリ 23,768 KB
最終ジャッジ日時 2023-08-19 19:40:43
合計ジャッジ時間 8,587 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
23,740 KB
testcase_01 AC 67 ms
21,704 KB
testcase_02 AC 65 ms
21,808 KB
testcase_03 AC 66 ms
21,540 KB
testcase_04 AC 65 ms
19,492 KB
testcase_05 AC 68 ms
21,484 KB
testcase_06 AC 67 ms
19,644 KB
testcase_07 AC 67 ms
21,568 KB
testcase_08 AC 68 ms
23,644 KB
testcase_09 AC 69 ms
21,664 KB
testcase_10 AC 70 ms
21,616 KB
testcase_11 AC 69 ms
21,724 KB
testcase_12 AC 70 ms
23,672 KB
testcase_13 AC 69 ms
21,756 KB
testcase_14 AC 68 ms
21,620 KB
testcase_15 AC 69 ms
23,712 KB
testcase_16 AC 68 ms
23,688 KB
testcase_17 AC 69 ms
23,704 KB
testcase_18 AC 70 ms
23,596 KB
testcase_19 AC 70 ms
21,600 KB
testcase_20 AC 69 ms
23,696 KB
testcase_21 AC 71 ms
23,648 KB
testcase_22 AC 70 ms
21,668 KB
testcase_23 AC 71 ms
23,768 KB
testcase_24 AC 72 ms
21,768 KB
testcase_25 AC 71 ms
19,552 KB
testcase_26 AC 73 ms
23,708 KB
testcase_27 AC 68 ms
21,488 KB
testcase_28 AC 68 ms
21,552 KB
testcase_29 AC 68 ms
21,704 KB
testcase_30 AC 69 ms
23,644 KB
testcase_31 AC 69 ms
23,544 KB
testcase_32 AC 69 ms
21,732 KB
testcase_33 AC 70 ms
21,604 KB
testcase_34 AC 71 ms
21,724 KB
testcase_35 AC 72 ms
21,820 KB
testcase_36 AC 72 ms
21,648 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

class P
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        var counts = Enumerable.Repeat(0, n).Select(_ => Console.ReadLine().Split()).Aggregate(Enumerable.Repeat(0, n), (x, y) => x.Zip(y, (z, w) => z + (w == "nyanpass" ? 1 : 0))).ToList();
        Console.WriteLine(counts.Count(x => x == n - 1) != 1 ? -1 : counts.IndexOf(n - 1) + 1);
    }
}
0