結果
問題 | No.1317 月曜日の朝、WAを出した |
ユーザー | さかぽん |
提出日時 | 2020-12-14 07:51:52 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 77 ms / 1,500 ms |
コード長 | 481 bytes |
コンパイル時間 | 1,635 ms |
コンパイル使用メモリ | 110,328 KB |
実行使用メモリ | 29,460 KB |
最終ジャッジ日時 | 2023-10-20 04:46:02 |
合計ジャッジ時間 | 2,481 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
25,352 KB |
testcase_01 | AC | 77 ms
29,460 KB |
testcase_02 | AC | 74 ms
29,460 KB |
testcase_03 | AC | 75 ms
29,460 KB |
コンパイルメッセージ
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]; } }