update template.cpp template.rs

This commit is contained in:
2026-03-22 16:29:00 +09:00
parent 681170f289
commit b2b4a9948f
2 changed files with 12 additions and 1 deletions

View File

@@ -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 {
} }

View File

@@ -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());
} }