結果
| 問題 | No.1957 Xor Min |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-07 09:05:16 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 891µs | |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 4,209 ms |
| コンパイル使用メモリ | 175,784 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-07 09:05:27 |
| 合計ジャッジ時間 | 3,090 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
use proconio::input;
use std::mem::swap;
use std::cmp::min;
fn main(){
input!{
mut a: i32,
mut b: i32,
}
if a < b{
swap(&mut a, &mut b);
}
let mut c = 1;
while c*2 <= a{
c *= 2;
}
println!("{}", min(c-1, b))
}