結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-03 23:37:47 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 514 bytes |
| 記録 | |
| コンパイル時間 | 3,974 ms |
| コンパイル使用メモリ | 201,940 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-03 11:40:10 |
| 合計ジャッジ時間 | 2,046 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
use std::io::Read;
fn main() {
let mut all_data = String::new();
std::io::stdin().read_to_string(&mut all_data).ok();
let all_data: Vec<&str> = all_data.trim().split('\n').map(|s| s.trim()).collect();
let n: usize = all_data.iter().next().unwrap().split_whitespace().next().unwrap().parse().unwrap();
let yes_fallin_love: bool = all_data.iter().skip(1).take(n)
.any(|s| s.contains("LOVE"));
if yes_fallin_love {
println!("YES");
} else {
println!("NO");
}
}