結果
| 問題 | No.1335 1337 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-08 09:12:36 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 684 bytes |
| 記録 | |
| コンパイル時間 | 8,621 ms |
| コンパイル使用メモリ | 169,728 KB |
| 実行使用メモリ | 187,012 KB |
| 最終ジャッジ日時 | 2025-12-08 09:12:54 |
| 合計ジャッジ時間 | 9,527 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (113 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string baseWord = Console.ReadLine()!;
string inputWord = Console.ReadLine()!;
string outputWord = "";
foreach (char c in inputWord)
{
if (c == '0' || c == '1' || c == '2' || c == '3' || c == '4'
|| c == '5' || c == '6' || c == '7' || c == '8' || c == '9')
{
string change = c.ToString();
int num = int.Parse(change);
outputWord += baseWord[num];
}
else
{
outputWord += c;
}
}
Console.WriteLine(outputWord);
}
}