結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             keymoon
                         | 
                    
| 提出日時 | 2021-01-15 19:21:41 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 97 ms / 1,500 ms | 
| コード長 | 894 bytes | 
| コンパイル時間 | 895 ms | 
| コンパイル使用メモリ | 106,880 KB | 
| 実行使用メモリ | 23,296 KB | 
| 最終ジャッジ日時 | 2024-11-26 11:00:52 | 
| 合計ジャッジ時間 | 1,844 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 | 
コンパイルメッセージ
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;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P
{
    public static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        var verdicts = new[] { "AC", "WA", "TLE", "MLE", "OLE", "RE" };
        for (int i = 0; i < n; i++)
        {
            var res1 = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var res2 = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var x = Array.IndexOf(verdicts, Console.ReadLine());
            var res = res2.Where((elem, ind) => ind != 0 && ind != x).All(x => x == 0) && res1[x] == 0;
            Console.WriteLine(res ? "Yes" : "No");
        }
    }
}
            
            
            
        
            
keymoon