update template.cpp template.rs

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

No files matched your search

+6
View File
@@ -1,4 +1,6 @@
#include <iostream>
#include <algorithm>
#include <vector>
#define let auto
#define fn auto
@@ -8,4 +10,8 @@ using namespace std;
fn fastio() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
}
fn main() -> int {
}
+6 -1
View File
@@ -1,3 +1,8 @@
use std::io::{read_to_string, stdin};
fn main() {
let temp = read_to_string(stdin()).unwrap();
let mut iter = temp
.split_ascii_whitespace()
.map(|x| x.parse::<usize>().unwrap());
}