結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-26 09:39:57 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 645 bytes |
| 記録 | |
| コンパイル時間 | 7,530 ms |
| コンパイル使用メモリ | 169,668 KB |
| 実行使用メモリ | 185,224 KB |
| 最終ジャッジ日時 | 2025-11-26 09:40:09 |
| 合計ジャッジ時間 | 9,083 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (103 ミリ秒)。 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 id = Console.ReadLine()!;
List<char> list = new List<char>();
foreach (char c in id)
{
list.Add(c);
}
if (list[list.Count - 2] == 'a' && list[list.Count - 1] == 'i')
{
list[list.Count - 2] = 'A';
list[list.Count - 1] = 'I';
}
else
{
list.Add('-');
list.Add('A');
list.Add('I');
}
for (int i = 0; i < list.Count; i++)
{
Console.Write(list[i]);
}
Console.WriteLine();
}
}