結果

問題 No.700 LOVE
ユーザー saran1591saran1591
提出日時 2018-06-26 22:22:10
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 618 bytes
コンパイル時間 1,875 ms
コンパイル使用メモリ 104,296 KB
実行使用メモリ 25,248 KB
最終ジャッジ日時 2023-09-13 14:13:54
合計ジャッジ時間 4,172 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
25,124 KB
testcase_01 AC 72 ms
23,256 KB
testcase_02 AC 71 ms
21,328 KB
testcase_03 AC 70 ms
21,236 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 71 ms
19,220 KB
testcase_07 AC 73 ms
21,244 KB
testcase_08 WA -
testcase_09 AC 71 ms
21,288 KB
testcase_10 AC 71 ms
21,200 KB
testcase_11 AC 72 ms
21,292 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 71 ms
23,284 KB
testcase_15 AC 72 ms
21,220 KB
testcase_16 AC 71 ms
19,192 KB
testcase_17 WA -
testcase_18 AC 71 ms
21,228 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.Linq;

namespace App
{
    class Program
    {
        static void Main(string[] args)
        {
            bool f = false;
            for (int i = Convert.ToInt16(Console.ReadLine().Substring(0, 1)); i > 0; i--)
            {
                var a = Console.ReadLine();
                if (a.IndexOf("LOVE") >= 0)
                {
                    f = true;
                }
            }
            if (f)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}
0