結果

問題 No.1249 小学校1年生の夢
ユーザー kurotemko
提出日時 2020-10-14 16:09:45
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 11,249 ms
コンパイル使用メモリ 378,376 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 19:09:42
合計ジャッジ時間 12,691 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::*;

fn main() {
    let v: Vec<i64> = {
        let mut s = String::new();
        stdin().read_line(&mut s).unwrap();
        s.split_whitespace().map(|x| x.parse().unwrap()).collect()
    };
    if v[0]+v[1] == v[2] {
        println!("Correct");
    }
    else {
        println!("Incorrect");
    }
}
0