結果
| 問題 |
No.2399 This Is Truly Final Edition
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-04 21:59:05 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 1,535 bytes |
| コンパイル時間 | 12,374 ms |
| コンパイル使用メモリ | 378,136 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 19:55:32 |
| 合計ジャッジ時間 | 13,123 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
// use std::io::*;
#[allow(unused_macros)]
// 整数1つ読み込み(macro)
macro_rules! read {
($($t:ty),*) => {
{
let mut input = String::new();
std::io::stdin().read_line(&mut input).ok();
let mut iter = input.split_whitespace();
($(iter.next().unwrap().parse::<$t>().unwrap()),*)
}
};
}
#[allow(unused_macros)]
// 文字列1つ読み込み(macro)
macro_rules! read_str {
() => {
{
let mut input = String::new();
std::io::stdin().read_line(&mut input).ok();
input.trim().to_string()
}
};
}
#[allow(unused_macros)]
// 整数の1次元ベクトル読み込み(macro)
macro_rules! read_vec {
($t:ty) => {
{
let mut input = String::new();
std::io::stdin().read_line(&mut input).ok();
input.trim().split_whitespace().map(|x| x.parse::<$t>().unwrap()).collect::<Vec<$t>>()
}
};
}
#[allow(unused_macros)]
// 文字列の1次元ベクトル読み込み(macro)
macro_rules! read_str_vec {
() => {
{
let mut input = String::new();
std::io::stdin().read_line(&mut input).ok();
input.trim().split_whitespace().map(|x| x.to_string()).collect::<Vec<String>>()
}
};
}
fn main() {
let mut s = String::from(read_str!());
let t = String::from(read_str!());
let n = read!(usize);
for _ in 0..n {
s.push_str(&("_".to_owned() + &t));
}
println!("{}", s);
}