結果

問題 No.700 LOVE
ユーザー ekidenpekidenp
提出日時 2018-06-15 22:27:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 426 bytes
コンパイル時間 3,744 ms
コンパイル使用メモリ 105,144 KB
実行使用メモリ 22,996 KB
最終ジャッジ日時 2023-09-30 05:19:16
合計ジャッジ時間 4,157 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,996 KB
testcase_01 AC 56 ms
20,872 KB
testcase_02 AC 58 ms
22,848 KB
testcase_03 AC 56 ms
20,828 KB
testcase_04 AC 55 ms
20,788 KB
testcase_05 AC 56 ms
22,896 KB
testcase_06 AC 56 ms
20,796 KB
testcase_07 AC 57 ms
20,836 KB
testcase_08 AC 57 ms
20,760 KB
testcase_09 AC 56 ms
20,800 KB
testcase_10 AC 57 ms
20,796 KB
testcase_11 AC 57 ms
20,848 KB
testcase_12 AC 57 ms
20,896 KB
testcase_13 AC 58 ms
22,812 KB
testcase_14 AC 57 ms
20,708 KB
testcase_15 AC 57 ms
20,748 KB
testcase_16 AC 57 ms
22,812 KB
testcase_17 AC 56 ms
20,652 KB
testcase_18 AC 57 ms
20,864 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;
class Program
{
	static void Main(string[] args)
	{
		string[] str = Console.ReadLine().Split();
		int N = int.Parse(str[0]);
		int M = int.Parse(str[1]);
		string ans = "NO";
		for(var i=0;i<N;i++){
			string str2 = Console.ReadLine();
			for(var j=0;j<M-3;j++){
				if(str2.Substring(j,4) == "LOVE"){
					ans = "YES";
					break;
				}
			}
		}
		Console.WriteLine(ans);
	}
}
0