結果

問題 No.2323 Nafmo、A+Bをする
コンテスト
ユーザー estece1
提出日時 2023-06-07 16:58:29
言語 Rust
(1.99.0 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 799µs
コード長 407 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 347 ms
コンパイル使用メモリ 181,728 KB
実行使用メモリ 9,924 KB
最終ジャッジ日時 2026-10-09 11:29:39
合計ジャッジ時間 2,425 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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