結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 72 ms
21,260 KB
testcase_03 AC 73 ms
21,296 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 72 ms
21,236 KB
testcase_07 AC 72 ms
21,204 KB
testcase_08 WA -
testcase_09 AC 72 ms
21,176 KB
testcase_10 AC 72 ms
21,240 KB
testcase_11 AC 73 ms
23,300 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 72 ms
21,108 KB
testcase_15 AC 71 ms
21,204 KB
testcase_16 AC 71 ms
21,116 KB
testcase_17 WA -
testcase_18 AC 72 ms
21,172 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 > -1; i--)
            {
                var a = Console.ReadLine();
                if (a.IndexOf("LOVE") >= 0)
                {
                    f = true;
                }
            }
            if (f)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }

        }
    }
}
0