結果
| 問題 |
No.2323 Nafmo、A+Bをする
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-09 11:40:34 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 277 bytes |
| コンパイル時間 | 16,574 ms |
| コンパイル使用メモリ | 378,744 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-16 00:14:09 |
| 合計ジャッジ時間 | 17,921 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
use std::io::Read;
fn main() {
let mut s = String::new();
std::io::stdin().read_to_string(&mut s).ok();
let s: Vec<_> = s.split_whitespace().collect();
let a = u32::from_str_radix(s[0], 2).unwrap();
let b = u32::from_str_radix(s[1], 2).unwrap();
println!("{}", a ^ b)
}