結果

問題 No.536 人工知能
ユーザー ixTL255ixTL255
提出日時 2018-07-05 23:41:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 248 bytes
コンパイル時間 1,848 ms
コンパイル使用メモリ 101,944 KB
実行使用メモリ 26,952 KB
最終ジャッジ日時 2023-09-13 18:02:53
合計ジャッジ時間 3,666 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
24,976 KB
testcase_01 AC 71 ms
20,468 KB
testcase_02 AC 74 ms
24,536 KB
testcase_03 AC 113 ms
25,044 KB
testcase_04 AC 115 ms
25,060 KB
testcase_05 AC 73 ms
20,540 KB
testcase_06 AC 113 ms
26,952 KB
testcase_07 AC 71 ms
20,548 KB
testcase_08 AC 113 ms
25,004 KB
testcase_09 AC 72 ms
20,624 KB
testcase_10 AC 70 ms
22,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Text.RegularExpressions;

public class Yuki536
{
	public static void Main()
	{
		var s = Console.ReadLine();
		if(s.EndsWith("ai")) Console.WriteLine(Regex.Replace(s,"ai$","AI"));
		else Console.WriteLine(s + "-AI");
	}
}
0