update template.cpp template.rs
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#define let auto
|
#define let auto
|
||||||
#define fn auto
|
#define fn auto
|
||||||
@@ -8,4 +10,8 @@ using namespace std;
|
|||||||
fn fastio() {
|
fn fastio() {
|
||||||
ios::sync_with_stdio(false);
|
ios::sync_with_stdio(false);
|
||||||
cin.tie(nullptr);
|
cin.tie(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() -> int {
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
use std::io::{read_to_string, stdin};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
let temp = read_to_string(stdin()).unwrap();
|
||||||
|
let mut iter = temp
|
||||||
|
.split_ascii_whitespace()
|
||||||
|
.map(|x| x.parse::<usize>().unwrap());
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user