結果
| 問題 | 
                            No.216 FAC
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nanophoto12
                         | 
                    
| 提出日時 | 2015-12-13 22:21:22 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 606 bytes | 
| コンパイル時間 | 1,989 ms | 
| コンパイル使用メモリ | 106,368 KB | 
| 実行使用メモリ | 19,200 KB | 
| 最終ジャッジ日時 | 2024-09-15 11:48:14 | 
| 合計ジャッジ時間 | 4,069 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | WA * 2 RE * 22 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
namespace No216
{
	class MainClass
	{
		public static void Main (string[] args)
		{			
			int[] scores = new int[101];
			Console.WriteLine ();
			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");
		}
	}
}
            
            
            
        
            
nanophoto12