Submission #28906611
Source Code Expand
#[allow(unused_macros)] macro_rules! parse_line { ( $t:ty ) => ( { let mut line = String::new(); ::std::io::stdin().read_line(&mut line).unwrap(); let mut iter = line.split_whitespace(); iter.next().unwrap().parse::<$t>().unwrap() } ); ( $( $t:ty), +) => ( { let mut line = String::new(); ::std::io::stdin().read_line(&mut line).unwrap(); let mut iter = line.split_whitespace(); ( $(iter.next().unwrap().parse::<$t>().unwrap()),* ) } ); } #[allow(unused_macros)] macro_rules! read_line { () => {{ let mut line = String::new(); ::std::io::stdin().read_line(&mut line).unwrap(); line.pop(); line }}; } #[allow(unused_macros)] macro_rules! parse_vec { ( $t:ty ) => {{ let mut line = String::new(); ::std::io::stdin().read_line(&mut line).unwrap(); let iter = line.split_whitespace(); iter.map(|v| v.parse::<$t>().unwrap()).collect::<Vec<_>>() }}; } fn main() { let n = parse_line!(f64); let low = 2_f64.powi(-31); let high = 2_f64.powi(31); if n >= low && n < high { println!("Yes"); } else { println!("No"); } }
Submission Info
Submission Time | |
---|---|
Task | A - Not Overflow |
User | ktsubun |
Language | Rust (1.42.0) |
Score | 0 |
Code Size | 1278 Byte |
Status | WA |
Exec Time | 7 ms |
Memory | 2128 KiB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_00.txt | AC | 7 ms | 2104 KiB |
example_01.txt | AC | 1 ms | 1892 KiB |
example_02.txt | AC | 2 ms | 1980 KiB |
hand_00.txt | AC | 1 ms | 2040 KiB |
hand_01.txt | AC | 1 ms | 1904 KiB |
hand_02.txt | WA | 3 ms | 2128 KiB |
hand_03.txt | AC | 1 ms | 2032 KiB |
hand_04.txt | AC | 2 ms | 2076 KiB |
hand_05.txt | AC | 1 ms | 2052 KiB |
hand_06.txt | WA | 1 ms | 2108 KiB |