結果

問題 No.536 人工知能
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-12 01:32:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 274 bytes
コンパイル時間 1,929 ms
コンパイル使用メモリ 105,092 KB
実行使用メモリ 25,072 KB
最終ジャッジ日時 2023-09-13 03:31:38
合計ジャッジ時間 3,755 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
24,996 KB
testcase_01 AC 76 ms
24,640 KB
testcase_02 AC 75 ms
24,544 KB
testcase_03 AC 117 ms
25,072 KB
testcase_04 AC 118 ms
25,012 KB
testcase_05 AC 75 ms
22,564 KB
testcase_06 AC 117 ms
24,872 KB
testcase_07 AC 75 ms
22,600 KB
testcase_08 AC 117 ms
24,880 KB
testcase_09 AC 75 ms
22,496 KB
testcase_10 AC 73 ms
22,348 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;

class No536{
    static void Main(string[] args){
        var s=Console.ReadLine();
        if(s.EndsWith("ai"))Console.WriteLine(Regex.Replace(s,"ai$","AI"));
        else Console.WriteLine($"{s}-AI");
        } 
    }
0