結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-14 07:51:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 1,500 ms |
| コード長 | 481 bytes |
| コンパイル時間 | 3,298 ms |
| コンパイル使用メモリ | 111,932 KB |
| 実行使用メモリ | 31,540 KB |
| 最終ジャッジ日時 | 2024-09-20 00:30:06 |
| 合計ジャッジ時間 | 2,946 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Linq;
class A
{
static int[] Read() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
static void Main() => Console.WriteLine(string.Join("\n", new int[int.Parse(Console.ReadLine())].Select(_ => Solve() ? "Yes" : "No")));
static bool Solve()
{
var a1 = Read();
var a2 = Read();
var x = "AWTMOR".IndexOf(Console.ReadLine()[0]);
return a1[x] == 0 && a2.Where((v, i) => i != 0 && i != x).Sum() == 0 && a1.Skip(1).Sum() <= a2[x];
}
}