結果

問題 No.2323 Nafmo、A+Bをする
ユーザー estece1estece1
提出日時 2023-06-07 16:58:29
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 15,522 ms
コンパイル使用メモリ 378,096 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 22:03:46
合計ジャッジ時間 15,389 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::{stdin, BufRead};

fn main() {
    let mut buf = String::new();
    let mut stdin = stdin().lock();

    let a = {
        stdin.read_line(&mut buf).unwrap();
        i32::from_str_radix(buf.trim_end(), 2).unwrap()
    };

    let b = {
        buf.clear();
        stdin.read_line(&mut buf).unwrap();
        i32::from_str_radix(buf.trim_end(), 2).unwrap()
    };

    println!("{}", a ^ b)
}
0