結果

問題 No.536 人工知能
ユーザー GrayCoderGrayCoder
提出日時 2017-06-30 23:01:08
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 27 ms / 1,000 ms
コード長 183 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,968 KB
最終ジャッジ日時 2023-07-27 20:09:45
合計ジャッジ時間 1,097 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
8,936 KB
testcase_01 AC 27 ms
8,900 KB
testcase_02 AC 25 ms
8,844 KB
testcase_03 AC 24 ms
8,876 KB
testcase_04 AC 24 ms
8,964 KB
testcase_05 AC 24 ms
8,884 KB
testcase_06 AC 25 ms
8,884 KB
testcase_07 AC 24 ms
8,884 KB
testcase_08 AC 25 ms
8,968 KB
testcase_09 AC 25 ms
8,904 KB
testcase_10 AC 25 ms
8,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

def main():
    S = input()

    result = re.match('.*ai$', S)
    if result is None:
        ans = S + '-AI'
    else:
        ans = S[:-2] + 'AI'

    print(ans)

main()
0