結果
| 問題 |
No.700 LOVE
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-19 09:35:04 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 551 bytes |
| コンパイル時間 | 3,045 ms |
| コンパイル使用メモリ | 73,368 KB |
| 実行使用メモリ | 37,308 KB |
| 最終ジャッジ日時 | 2024-06-30 17:11:16 |
| 合計ジャッジ時間 | 4,772 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 16 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Sample {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(
new InputStreamReader(System.in));
int row = Integer.parseInt(br.readLine());
int col = Integer.parseInt(br.readLine());
for(int i=0;i<row;i++) {
String value = br.readLine();
if(value.contains("LOVE")) {
System.out.println("YES");
return;
}
}
System.out.println("NO");
}
}