結果

問題 No.700 LOVE
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 10:42:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 2,046 ms
コンパイル使用メモリ 72,532 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2023-09-30 05:39:42
合計ジャッジ時間 5,492 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,772 KB
testcase_01 AC 126 ms
56,164 KB
testcase_02 AC 126 ms
55,880 KB
testcase_03 AC 126 ms
55,956 KB
testcase_04 AC 126 ms
53,712 KB
testcase_05 AC 124 ms
56,052 KB
testcase_06 AC 124 ms
56,352 KB
testcase_07 AC 127 ms
55,856 KB
testcase_08 AC 127 ms
55,956 KB
testcase_09 AC 125 ms
55,828 KB
testcase_10 AC 133 ms
55,772 KB
testcase_11 AC 125 ms
55,440 KB
testcase_12 AC 131 ms
55,952 KB
testcase_13 AC 127 ms
56,152 KB
testcase_14 AC 131 ms
55,748 KB
testcase_15 AC 131 ms
56,088 KB
testcase_16 AC 134 ms
55,652 KB
testcase_17 AC 131 ms
55,948 KB
testcase_18 AC 124 ms
55,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int h = sc.nextInt(); int w = sc.nextInt();
		for (int i=0; i<h; i++) {
			if (sc.next().contains("LOVE")) {
				System.out.println("YES");
				return;
			}
		}
		System.out.println("NO");
		
	}
}
0