結果

問題 No.700 LOVE
ユーザー HTmojiHTmoji
提出日時 2018-06-19 09:39:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 3,004 ms
コンパイル使用メモリ 73,092 KB
実行使用メモリ 56,700 KB
最終ジャッジ日時 2023-09-30 05:25:56
合計ジャッジ時間 6,146 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
55,788 KB
testcase_01 AC 114 ms
55,960 KB
testcase_02 AC 111 ms
56,168 KB
testcase_03 AC 113 ms
55,832 KB
testcase_04 AC 116 ms
56,420 KB
testcase_05 AC 113 ms
55,768 KB
testcase_06 AC 118 ms
56,252 KB
testcase_07 AC 114 ms
56,148 KB
testcase_08 AC 114 ms
56,084 KB
testcase_09 AC 114 ms
56,244 KB
testcase_10 AC 120 ms
56,684 KB
testcase_11 AC 114 ms
56,324 KB
testcase_12 AC 120 ms
56,384 KB
testcase_13 AC 114 ms
55,972 KB
testcase_14 AC 119 ms
56,336 KB
testcase_15 AC 114 ms
56,700 KB
testcase_16 AC 119 ms
56,252 KB
testcase_17 AC 113 ms
55,968 KB
testcase_18 AC 109 ms
55,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Sample {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int row = sc.nextInt();
		int col = sc.nextInt();

		for(int i=0;i<row;i++) {
			String value = sc.next();

			if(value.contains("LOVE")) {
				System.out.println("YES");
				return;
			}
		}

		System.out.println("NO");
	}
}
0