結果

問題 No.536 人工知能
ユーザー Noiri
提出日時 2017-12-05 00:44:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 557 ms
コンパイル使用メモリ 54,616 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-28 07:08:52
合計ジャッジ時間 1,119 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main(){
    string name; cin >> name;
    int len = name.size();
    if(name[len-2] == 'a'){
        if(name[len-1] == 'i'){
            name[len-2] = 'A';
            name[len-1] = 'I';
            cout << name << endl;
        }
    }
    else cout << name << "AI" << endl;

    return 0;
}
0