問題一覧 > 通常問題

No.2399 This Is Truly Final Edition

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 290
作問者 : 👑 獅子座じゃない人 / テスター : 👑 amentorimaru
お気に入りにしたユーザー ProblemId : 9814 / 自分の提出
問題文最終更新日: 2023-08-03 22:01:35
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 400 (順位表) の他の問題:

Problem Statement

You are given strings $S,T$ consisting of alphabet letters and a positive integer $N$.

Output the string obtained by performing the following operation on $S$ $N$ times: append _ and $T$ to the end.

Input

$S$
$T$
$N$

  • $S$ and $T$ are strings consisting of alphabet letters
  • $N$ is an integer
  • $1\leq |S|\leq 10$
  • $1\leq |T|\leq 10$
  • $1\leq N\leq 10$

Output

Output the string, followed by a newline.

Sample

Sample 1
Input
shiyosho
saishuban
3
Output
shiyosho_saishuban_saishuban_saishuban

Appending _ and saishuban to the end of shiyosho $3$ times gives shiyosho_saishuban_saishuban_saishuban.

Sample 2
Input
update
latest
4
Output
update_latest_latest_latest_latest

Sample 3
Input
Not
Leonian
1
Output
Not_Leonian

$S$ and $T$ may contain uppercase English letters.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。