結果
問題 | No.536 人工知能 |
ユーザー |
![]() |
提出日時 | 2023-05-12 16:07:12 |
言語 | C# (.NET 8.0.404) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 638 bytes |
コンパイル時間 | 22,056 ms |
コンパイル使用メモリ | 170,412 KB |
実行使用メモリ | 184,552 KB |
最終ジャッジ日時 | 2024-11-28 13:28:12 |
合計ジャッジ時間 | 15,125 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (106 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System.Collections.Generic;using System;using System.Drawing;namespace yukicoder{class Program{static void Main(string[] args){var S = Console.ReadLine();if (S.Substring(S.Length - 2 , 2) == "ai"){string up = S.Substring(S.Length - 2 , 2).ToUpper();string rem = S.Remove(S.Length - 2, 2);Console.WriteLine(rem + up);}else if (!(S.Substring(S.Length - 2, 2) == "ai")){Console.WriteLine(S + "-AI");}}}}