結果
問題 | No.2399 This Is Truly Final Edition |
ユーザー |
![]() |
提出日時 | 2023-08-04 21:29:14 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 520 bytes |
コンパイル時間 | 2,173 ms |
コンパイル使用メモリ | 103,168 KB |
実行使用メモリ | 17,664 KB |
最終ジャッジ日時 | 2024-10-14 19:26:10 |
合計ジャッジ時間 | 1,491 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System.Text; using System; public class Hello { static void Main() { var s = Console.ReadLine().Trim(); var t = Console.ReadLine().Trim(); var n = int.Parse(Console.ReadLine().Trim()); getAns(s, t, n); } static void getAns(string s, string t, int n) { var sb = new StringBuilder(); sb.Append(s); for (int i = 0; i < n; i++) { sb.Append("_"); sb.Append(t); } Console.WriteLine(sb); } }