結果
| 問題 | No.700 LOVE | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-02-03 23:37:47 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 514 bytes | 
| コンパイル時間 | 13,649 ms | 
| コンパイル使用メモリ | 377,352 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-22 23:44:44 | 
| 合計ジャッジ時間 | 14,664 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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");
    }
}
            
            
            
        