結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
Maeda
|
| 提出日時 | 2025-04-07 09:17:33 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 778 bytes |
| コンパイル時間 | 10,150 ms |
| コンパイル使用メモリ | 171,460 KB |
| 実行使用メモリ | 186,756 KB |
| 最終ジャッジ日時 | 2025-04-07 09:17:49 |
| 合計ジャッジ時間 | 15,651 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 TLE * 1 |
| other | AC * 21 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (109 ミリ秒)。 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)
{
int n = int.Parse(Console.ReadLine());
List<char> list = new List<char>();
for (int i = 0; i < n; i++)
{
string[] str = Console.ReadLine().Split(' ');
list = SetList(list, int.Parse(str[0]), char.Parse(str[1]));
}
foreach (var c in list)
{
Console.Write(c);
}
}
private static List<char> SetList(List<char> list, int v1, char v2)
{
if(v1 == 0)
{
list.Add(v2);
}
else
{
list.Insert(0, v2);
}
return list;
}
}
Maeda