結果

問題 No.216 FAC
ユーザー nanophoto12nanophoto12
提出日時 2015-12-13 22:22:35
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 605 bytes
コンパイル時間 3,389 ms
コンパイル使用メモリ 107,336 KB
実行使用メモリ 26,004 KB
最終ジャッジ日時 2023-10-13 15:02:44
合計ジャッジ時間 4,559 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
23,900 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 57 ms
21,848 KB
testcase_04 AC 55 ms
21,780 KB
testcase_05 AC 55 ms
21,764 KB
testcase_06 AC 56 ms
19,816 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 56 ms
21,816 KB
testcase_12 WA -
testcase_13 AC 56 ms
21,776 KB
testcase_14 WA -
testcase_15 AC 56 ms
21,816 KB
testcase_16 AC 53 ms
21,716 KB
testcase_17 AC 56 ms
19,748 KB
testcase_18 WA -
testcase_19 AC 58 ms
21,932 KB
testcase_20 WA -
testcase_21 AC 58 ms
23,808 KB
testcase_22 AC 56 ms
23,820 KB
testcase_23 AC 60 ms
19,724 KB
testcase_24 WA -
testcase_25 AC 56 ms
21,864 KB
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 No156
{
	class MainClass
	{
		public static void Main (string[] args)
		{			
			int[] scores = new int[101];
			Console.ReadLine ();
			var perScore = Console.ReadLine ().Split (' ').Select (v => Convert.ToInt32 (v)).ToArray ();
			var answer = Console.ReadLine ().Split (' ').Select (v => Convert.ToInt32 (v)).ToArray ();

			for (int i = 0; i < answer.Length; i++) {
				scores [answer [i]] += perScore [i];
			}
			if (scores [0] == scores.Max ()) {
				Console.WriteLine ("YES");
			}
			Console.WriteLine ("NO");
		}
	}
}
0