結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-10 12:39:54 |
| 言語 | Java (openjdk 26.0.2.1) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 2,000 ms |
| + 774µs | |
| コード長 | 479 bytes |
| 記録 | |
| コンパイル時間 | 1,465 ms |
| コンパイル使用メモリ | 83,708 KB |
| 実行使用メモリ | 43,392 KB |
| 最終ジャッジ日時 | 2026-08-23 14:58:29 |
| 合計ジャッジ時間 | 4,162 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
String flag = "NO";
for(int i=0; i<=N; i++){
String s = sc.nextLine();
if(s.contains("LOVE")){
flag="YES";
}
}
System.out.println(flag);
}
}