結果
問題 | No.1335 1337 |
ユーザー | ccc |
提出日時 | 2022-09-07 22:47:06 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 670 bytes |
コンパイル時間 | 18,776 ms |
コンパイル使用メモリ | 147,516 KB |
実行使用メモリ | 163,136 KB |
最終ジャッジ日時 | 2023-08-15 08:05:27 |
合計ジャッジ時間 | 11,280 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
28,424 KB |
testcase_01 | AC | 44 ms
28,276 KB |
testcase_02 | AC | 44 ms
28,448 KB |
testcase_03 | AC | 42 ms
26,760 KB |
testcase_04 | AC | 43 ms
28,576 KB |
testcase_05 | AC | 42 ms
26,776 KB |
testcase_06 | AC | 44 ms
28,644 KB |
testcase_07 | AC | 44 ms
30,192 KB |
testcase_08 | AC | 43 ms
28,712 KB |
testcase_09 | AC | 43 ms
28,228 KB |
testcase_10 | AC | 45 ms
28,720 KB |
testcase_11 | AC | 45 ms
28,672 KB |
testcase_12 | AC | 44 ms
30,120 KB |
testcase_13 | AC | 45 ms
30,460 KB |
testcase_14 | AC | 44 ms
28,332 KB |
testcase_15 | AC | 44 ms
28,556 KB |
testcase_16 | AC | 44 ms
28,264 KB |
testcase_17 | AC | 45 ms
163,136 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 134 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp4 { class Program { static void Main() { var A = Console.ReadLine(); var S = Console.ReadLine(); var _tmp = new List<char>(); foreach(var s in S) { if ( s >= '0' && s <= '9') { var sInt = int.Parse(s.ToString()); _tmp.Add(A[sInt]); } else { _tmp.Add(s); } } Console.WriteLine(String.Join("", _tmp)); } } }