2015-07-26 08:24:08 -05:00
|
|
|
mod _common;
|
|
|
|
|
|
|
|
use _common::validate;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
for exp in 19..64 {
|
|
|
|
let power: u64 = 1 << exp;
|
2016-01-26 15:05:21 -06:00
|
|
|
validate(&power.to_string());
|
2015-07-26 08:24:08 -05:00
|
|
|
for offset in 1..123 {
|
2016-01-26 15:05:21 -06:00
|
|
|
validate(&(power + offset).to_string());
|
|
|
|
validate(&(power - offset).to_string());
|
2015-07-26 08:24:08 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
for offset in 0..123 {
|
2016-01-26 15:05:21 -06:00
|
|
|
validate(&(u64::MAX - offset).to_string());
|
2015-07-26 08:24:08 -05:00
|
|
|
}
|
|
|
|
}
|