結果

問題 No.700 LOVE
ユーザー fal_rndfal_rnd
提出日時 2018-06-16 12:28:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 2,767 ms
コンパイル使用メモリ 72,132 KB
実行使用メモリ 56,552 KB
最終ジャッジ日時 2023-09-30 05:22:44
合計ジャッジ時間 5,028 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
56,072 KB
testcase_01 AC 106 ms
55,872 KB
testcase_02 AC 108 ms
56,136 KB
testcase_03 AC 112 ms
55,488 KB
testcase_04 AC 118 ms
56,340 KB
testcase_05 AC 115 ms
55,596 KB
testcase_06 AC 110 ms
56,552 KB
testcase_07 AC 120 ms
55,784 KB
testcase_08 AC 114 ms
55,872 KB
testcase_09 AC 107 ms
55,692 KB
testcase_10 AC 113 ms
56,000 KB
testcase_11 AC 106 ms
55,892 KB
testcase_12 AC 121 ms
55,776 KB
testcase_13 AC 116 ms
55,676 KB
testcase_14 AC 118 ms
55,940 KB
testcase_15 AC 116 ms
55,876 KB
testcase_16 AC 112 ms
55,956 KB
testcase_17 AC 110 ms
55,872 KB
testcase_18 AC 110 ms
55,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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