結果

問題 No.700 LOVE
ユーザー _matumo__matumo_
提出日時 2018-07-17 17:30:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 583 bytes
コンパイル時間 3,045 ms
コンパイル使用メモリ 103,964 KB
実行使用メモリ 24,516 KB
最終ジャッジ日時 2023-09-30 05:28:26
合計ジャッジ時間 5,582 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
24,468 KB
testcase_01 AC 80 ms
22,452 KB
testcase_02 AC 81 ms
24,392 KB
testcase_03 AC 84 ms
22,464 KB
testcase_04 AC 83 ms
20,320 KB
testcase_05 AC 81 ms
22,524 KB
testcase_06 AC 80 ms
22,392 KB
testcase_07 AC 80 ms
22,464 KB
testcase_08 AC 80 ms
22,552 KB
testcase_09 AC 79 ms
22,428 KB
testcase_10 AC 80 ms
22,508 KB
testcase_11 AC 80 ms
24,452 KB
testcase_12 AC 81 ms
20,268 KB
testcase_13 AC 81 ms
22,576 KB
testcase_14 AC 81 ms
22,392 KB
testcase_15 AC 81 ms
24,516 KB
testcase_16 AC 82 ms
24,464 KB
testcase_17 AC 80 ms
22,576 KB
testcase_18 AC 80 ms
22,460 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Text;

namespace YukiCoder
{
    class Program
    {

        static void Main(string[] args)
        {
            var va = Console.ReadLine().Split().Select(int.Parse).ToArray();
            bool isLove = false;
            for (int i = 0; i < va[0]; i++)
            {
                if (Console.ReadLine().IndexOf("LOVE") >= 0) isLove = true;
            }
            if (isLove) Console.WriteLine("YES");
            else Console.WriteLine("NO");
            Console.ReadLine();
        }
    }
}
0