結果

問題 No.216 FAC
ユーザー mbanmban
提出日時 2016-11-04 15:00:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 676 bytes
コンパイル時間 2,144 ms
コンパイル使用メモリ 106,548 KB
実行使用メモリ 23,744 KB
最終ジャッジ日時 2023-08-16 13:44:09
合計ジャッジ時間 5,223 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,516 KB
testcase_01 AC 59 ms
21,532 KB
testcase_02 AC 59 ms
21,620 KB
testcase_03 AC 57 ms
23,592 KB
testcase_04 AC 56 ms
21,608 KB
testcase_05 AC 59 ms
21,700 KB
testcase_06 AC 59 ms
23,596 KB
testcase_07 AC 58 ms
21,776 KB
testcase_08 AC 58 ms
21,596 KB
testcase_09 AC 59 ms
23,596 KB
testcase_10 AC 60 ms
21,432 KB
testcase_11 AC 59 ms
21,736 KB
testcase_12 AC 60 ms
23,744 KB
testcase_13 AC 60 ms
21,540 KB
testcase_14 AC 59 ms
21,732 KB
testcase_15 AC 59 ms
21,552 KB
testcase_16 AC 59 ms
21,584 KB
testcase_17 AC 60 ms
19,560 KB
testcase_18 AC 59 ms
21,548 KB
testcase_19 AC 60 ms
21,548 KB
testcase_20 AC 58 ms
21,628 KB
testcase_21 AC 59 ms
21,608 KB
testcase_22 AC 60 ms
21,684 KB
testcase_23 AC 59 ms
21,572 KB
testcase_24 AC 60 ms
21,608 KB
testcase_25 AC 60 ms
21,596 KB
testcase_26 AC 61 ms
23,640 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;
using System.Text;
using System.Threading.Tasks;

class Magatro
{
    static void Main()
    {
        int N = int.Parse(Console.ReadLine());
        int[] a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        int[] b = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        int[] score = new int[101];
        for(int i = 0; i < N; i++)
        {
            score[b[i]] += a[i];
        }
        if (score.Max() == score[0])
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }

}
0