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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
pub mod input{
pub fn inputinti32()->i32{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: i32 = a.trim().parse().unwrap();
a
}
pub fn inputinti8()->i8{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: i8 = a.trim().parse().unwrap();
a
}
pub fn inputinti64()->i64{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: i64 = a.trim().parse().unwrap();
a
}
pub fn inputintu8()->u8{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: u8 = a.trim().parse().unwrap();
a
}
pub fn inputintu32()->u32{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: u32 = a.trim().parse().unwrap();
a
}
pub fn inputintu64()->u64{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: u64 = a.trim().parse().unwrap();
a
}
pub fn inputfloatf32()->f32{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: f32 = a.trim().parse().unwrap();
a
}
pub fn inputfloatf64()->f64{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
let a: f64 = a.trim().parse().unwrap();
a
}
pub fn inputstring()->String{
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
a
}
}