結果
問題 | No.536 人工知能 |
ユーザー | 14番 |
提出日時 | 2017-07-01 03:25:17 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 74 ms / 1,000 ms |
コード長 | 930 bytes |
コンパイル時間 | 2,008 ms |
コンパイル使用メモリ | 103,344 KB |
実行使用メモリ | 23,448 KB |
最終ジャッジ日時 | 2023-07-27 23:18:14 |
合計ジャッジ時間 | 3,719 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
19,476 KB |
testcase_01 | AC | 73 ms
21,332 KB |
testcase_02 | AC | 73 ms
21,352 KB |
testcase_03 | AC | 74 ms
23,380 KB |
testcase_04 | AC | 74 ms
23,372 KB |
testcase_05 | AC | 72 ms
21,420 KB |
testcase_06 | AC | 73 ms
23,448 KB |
testcase_07 | AC | 73 ms
21,300 KB |
testcase_08 | AC | 74 ms
21,400 KB |
testcase_09 | AC | 73 ms
21,444 KB |
testcase_10 | AC | 71 ms
21,100 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { string inpt = Reader.ReadLine(); if(inpt.EndsWith("ai", StringComparison.CurrentCulture)) { Console.WriteLine(inpt.Substring(0,inpt.Length-2)+"AI"); } else { Console.WriteLine(inpt + "-AI"); } } public class Reader { private static StringReader sr; public static bool IsDebug = false; public static string ReadLine() { if (IsDebug) { if (sr == null) { sr = new StringReader(InputText.Trim()); } return sr.ReadLine(); } else { return Console.ReadLine(); } } private static string InputText = @" samurai "; } public static void Main(string[] args) { #if DEBUG Reader.IsDebug = true; #endif Program prg = new Program(); prg.Proc(); } }