結果

問題 No.700 LOVE
ユーザー kmtrc130kmtrc130
提出日時 2019-03-15 16:18:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 571 bytes
コンパイル時間 2,204 ms
コンパイル使用メモリ 108,220 KB
実行使用メモリ 24,484 KB
最終ジャッジ日時 2023-09-30 05:40:23
合計ジャッジ時間 4,270 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
22,432 KB
testcase_01 AC 71 ms
20,352 KB
testcase_02 AC 73 ms
22,340 KB
testcase_03 AC 73 ms
22,412 KB
testcase_04 AC 75 ms
20,544 KB
testcase_05 AC 73 ms
24,484 KB
testcase_06 AC 69 ms
22,556 KB
testcase_07 AC 72 ms
22,328 KB
testcase_08 AC 73 ms
24,308 KB
testcase_09 AC 72 ms
20,432 KB
testcase_10 AC 72 ms
22,356 KB
testcase_11 AC 74 ms
22,516 KB
testcase_12 AC 74 ms
22,352 KB
testcase_13 AC 74 ms
24,464 KB
testcase_14 AC 71 ms
22,456 KB
testcase_15 AC 72 ms
22,412 KB
testcase_16 AC 73 ms
24,340 KB
testcase_17 AC 73 ms
22,556 KB
testcase_18 AC 69 ms
20,324 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.Text.RegularExpressions;
using System.Linq;

class Program
{
    public void Solve()
    {
        int[] nm = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
        bool isLOVE = false;
        for (int i = 1; i <= nm[0]; i++)
        {
            var s = Console.ReadLine();
            if (isLOVE) { continue; }
            isLOVE = 0 <= s.IndexOf("LOVE");
        }
        Console.WriteLine(isLOVE ? "YES" : "NO");
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0