From b2b4a9948ff66606c685cd4196c5210f98e07989 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sun, 22 Mar 2026 16:29:00 +0900 Subject: [PATCH] update template.cpp template.rs --- templates/template.cpp | 6 ++++++ templates/template.rs | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/templates/template.cpp b/templates/template.cpp index 3a57260..09f6bef 100644 --- a/templates/template.cpp +++ b/templates/template.cpp @@ -1,4 +1,6 @@ #include +#include +#include #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 { + } \ No newline at end of file diff --git a/templates/template.rs b/templates/template.rs index 8a55e80..e26a592 100644 --- a/templates/template.rs +++ b/templates/template.rs @@ -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::().unwrap()); } \ No newline at end of file