Submission #33475862
Source Code Expand
use proconio::input;
fn main() {
input! {
l1: i32,
r1: i32,
l2: i32,
r2: i32,
}
let res =
(!(!0_u128 << (r1 - l1)) << l1 & !(!0 << (r2 - l2)) << l2).count_ones();
println!("{}", res);
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Intersection |
| User | rsk0315 |
| Language | Rust (1.42.0) |
| Score | 100 |
| Code Size | 260 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 2120 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 6 ms | 2000 KiB |
| example_01.txt | AC | 2 ms | 2120 KiB |
| example_02.txt | AC | 1 ms | 2108 KiB |
| hand_00.txt | AC | 1 ms | 1896 KiB |
| hand_01.txt | AC | 1 ms | 2024 KiB |
| hand_02.txt | AC | 1 ms | 2056 KiB |
| hand_03.txt | AC | 2 ms | 1888 KiB |
| hand_04.txt | AC | 1 ms | 1984 KiB |
| hand_05.txt | AC | 2 ms | 2020 KiB |
| hand_06.txt | AC | 1 ms | 1984 KiB |
| hand_07.txt | AC | 2 ms | 1968 KiB |