-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagain25.rs
More file actions
32 lines (27 loc) · 790 Bytes
/
Copy pathagain25.rs
File metadata and controls
32 lines (27 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
struct Scan {
buffer: std::collections::VecDeque<String>
}
impl Scan {
fn new() -> Scan {
Scan { buffer: std::collections::VecDeque::new() }
}
fn next<T: std::str::FromStr>(&mut self)-> T {
loop {
if let Some(token) = self.buffer.pop_front() {
break token.parse::<T>().ok().unwrap();
}
let mut line = String::new();
std::io::stdin().read_line(&mut line).expect("Fail to read");
self.buffer = line.split_whitespace().map(String::from).collect();
}
}
}
fn _main() {
let mut scan = Scan::new();
let mut _n: u64 = scan.next();
println!("25");
}
fn main() {
std::thread::Builder::new()
.stack_size(1<<23).spawn(_main).unwrap().join().unwrap();
}