結果

問題 No.932 解法破綻!高橋君
ユーザー phspls
提出日時 2020-01-05 19:19:58
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 458 bytes
コンパイル時間 12,376 ms
コンパイル使用メモリ 377,952 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 23:08:08
合計ジャッジ時間 13,738 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::Read;

fn solve(results: Vec<&str>) {
    let failed: bool = results.iter()
        .any(|ans| *ans != "AC");
    if failed {
        println!("{}", "Failed...");
    } else {
        println!("{}", "Done!");
    }
}

fn main() {
    let mut s = String::new();
    std::io::stdin().read_to_string(&mut s).ok();
    let results: Vec<&str> = s.trim().split('\n').next().unwrap().trim()
        .split(',')
        .collect();
    solve(results);
}
0