結果

問題 No.536 人工知能
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2017-09-17 18:52:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 312 bytes
コンパイル時間 1,942 ms
コンパイル使用メモリ 103,116 KB
実行使用メモリ 21,468 KB
最終ジャッジ日時 2023-08-07 20:34:02
合計ジャッジ時間 3,520 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
21,324 KB
testcase_01 AC 72 ms
21,408 KB
testcase_02 AC 70 ms
19,416 KB
testcase_03 AC 72 ms
21,464 KB
testcase_04 AC 73 ms
21,468 KB
testcase_05 AC 71 ms
19,448 KB
testcase_06 AC 71 ms
21,408 KB
testcase_07 AC 73 ms
21,312 KB
testcase_08 AC 71 ms
21,316 KB
testcase_09 AC 72 ms
21,380 KB
testcase_10 AC 68 ms
19,096 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.Collections.Generic;
using System.Linq;
using System.Text;

class Program
{
	static void Main(string[] args)
	{
		var S = Console.ReadLine();
		if (S.EndsWith("ai"))
		{
			Console.WriteLine(S.Substring(0, S.Length - 2) + "AI");
		}
		else
		{
			Console.WriteLine(S + "-AI");
		}
	}
}
0