結果

問題 No.700 LOVE
ユーザー tsunabittsunabit
提出日時 2018-07-29 14:28:13
言語 Java19
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 502 bytes
コンパイル時間 5,872 ms
コンパイル使用メモリ 73,480 KB
実行使用メモリ 56,248 KB
最終ジャッジ日時 2023-09-30 05:32:15
合計ジャッジ時間 7,599 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,652 KB
testcase_01 AC 124 ms
55,632 KB
testcase_02 AC 126 ms
55,472 KB
testcase_03 AC 126 ms
55,776 KB
testcase_04 AC 127 ms
55,592 KB
testcase_05 AC 125 ms
56,248 KB
testcase_06 AC 125 ms
56,052 KB
testcase_07 AC 125 ms
56,016 KB
testcase_08 AC 126 ms
55,700 KB
testcase_09 AC 129 ms
56,136 KB
testcase_10 AC 134 ms
56,172 KB
testcase_11 AC 126 ms
55,728 KB
testcase_12 AC 132 ms
56,236 KB
testcase_13 AC 132 ms
55,760 KB
testcase_14 AC 132 ms
55,904 KB
testcase_15 AC 133 ms
56,016 KB
testcase_16 AC 134 ms
54,216 KB
testcase_17 AC 129 ms
55,924 KB
testcase_18 AC 126 ms
55,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

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