結果

問題 No.993 青色
コンテスト
ユーザー 大谷祐翔
提出日時 2025-12-02 10:03:53
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 440 bytes
コンパイル時間 7,911 ms
コンパイル使用メモリ 169,672 KB
実行使用メモリ 184,980 KB
最終ジャッジ日時 2025-12-02 10:04:03
合計ジャッジ時間 9,103 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (110 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #
raw source code

class Program
{
    static void Main(string[] args)
    {
        string input = Console.ReadLine()!;
        string word = "";

        foreach (char c in input)
        {
            word += c;
            if (word.Length >= 2 && word.Substring(word.Length - 2, 2) == "ao")
            {
                word = word.Remove(word.Length - 2, 2);
                word += "ki";
            }
        }
        Console.WriteLine(word);
    }
}
0