結果

問題 No.536 人工知能
ユーザー tazakkytazakky
提出日時 2017-09-15 14:56:58
言語 PHP
(8.3.4)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 167 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 31,104 KB
実行使用メモリ 31,044 KB
最終ジャッジ日時 2024-04-25 11:30:06
合計ジャッジ時間 992 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
31,016 KB
testcase_01 AC 35 ms
30,456 KB
testcase_02 AC 38 ms
30,760 KB
testcase_03 AC 38 ms
30,776 KB
testcase_04 AC 37 ms
30,616 KB
testcase_05 AC 36 ms
30,668 KB
testcase_06 AC 35 ms
30,700 KB
testcase_07 AC 36 ms
31,008 KB
testcase_08 AC 36 ms
31,044 KB
testcase_09 AC 36 ms
31,036 KB
testcase_10 AC 34 ms
31,004 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    $s = trim(fgets(STDIN));
    if(preg_match('/(ai$)/', $s)){
        echo substr_replace($s, "AI", -2, 2)."\n";
    }else{
        echo $s."-AI\n";
    }

?>
0