結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-02 09:09:40 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 530 bytes |
| コンパイル時間 | 7,873 ms |
| コンパイル使用メモリ | 171,104 KB |
| 実行使用メモリ | 189,812 KB |
| 最終ジャッジ日時 | 2025-12-02 09:09:50 |
| 合計ジャッジ時間 | 9,077 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
public class Program
{
public static void Main()
{
//int num = int.Parse(Console.ReadLine() ?? string.Empty);
//string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
string str = Console.ReadLine() ?? string.Empty;
int index = str.LastIndexOf("ai");
if (index == str.Length -2)
{
str = str.Remove(index) + "AI";
Console.WriteLine(str);
}
else
{
Console.WriteLine(str + "-AI");
}
}
}