結果
| 問題 | No.536 人工知能 | 
| コンテスト | |
| ユーザー |  Dameningen | 
| 提出日時 | 2017-06-30 22:27:24 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 989 bytes | 
| コンパイル時間 | 649 ms | 
| コンパイル使用メモリ | 79,532 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-04 19:35:23 | 
| 合計ジャッジ時間 | 1,149 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
#include<string>
#include<vector>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<stack>
#include<queue>
#include<cmath>
#include<algorithm>
#include<list>
#include<set>
#include<map>
#include<cstring>
#include<sstream>
#include<cassert>
#define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X))
#define reps(X,S,Y) for (int (X) = S;(X) < (Y);++(X))
#define rrep(X,Y) for (int (X) = (Y)-1;(X) >=0;--(X))
#define repe(X,Y) for ((X) = 0;(X) < (Y);++(X))
#define peat(X,Y) for (;(X) < (Y);++(X))
#define all(X) (X).begin(),(X).end()
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
int main()
{
    string str;
    cin >> str;
    
    int size = str.size();
    
    if (str[size-2] == 'a' && str[size-1] == 'i') {
        for (int i = 0; i < size - 2; ++i) {
            printf("%c", str[i]);
        }
        printf("AI\n");
    } else {
        printf("%s", str.c_str());
        printf("-AI\n");
    }
    
    
    
    
    
}
            
            
            
        