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
// This is the crate make to take easy input 
//simple the key word is input
//example
//for i32 inputinti32()

//for f32 inputfloat32()
// for string inputstring()
//please remember to save the function into the variable because it return value
//Good luck 
pub mod input{


pub fn inputinti32()->i32{  // take 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{  // take 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{  // take i8
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{  // take 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{  // take 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{  // take 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{  // take f8
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{  // take 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{  // take string
let mut a = String::new();
std::io::stdin().read_line(&mut a).expect("unvalid input");
a
}
}