結果

問題 No.2323 Nafmo、A+Bをする
ユーザー ixTL255
提出日時 2023-06-14 00:52:59
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 22,634 ms
コンパイル使用メモリ 382,268 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 11:57:08
合計ジャッジ時間 14,525 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

fn read() -> String {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().to_string()
}

fn main() {
    let a = usize::from_str_radix(&read(), 2).unwrap();
    let b = usize::from_str_radix(&read(), 2).unwrap();
    println!("{}", a ^ b);
}
0