結果
| 問題 | No.536 人工知能 | 
| コンテスト | |
| ユーザー |  かに | 
| 提出日時 | 2017-07-03 20:47:54 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 22 ms / 1,000 ms | 
| コード長 | 428 bytes | 
| コンパイル時間 | 2,034 ms | 
| コンパイル使用メモリ | 194,760 KB | 
| 最終ジャッジ日時 | 2025-01-05 00:59:08 | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
#include "bits/stdc++.h"
#define rep(a,b) for(int a = 0;a < b;a++)
#define REP(i, x, n) for(int i = x; i < n; i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int dx[] = { 1, -1 , 0 , 0 };
int dy[] = { 0,  0,  1, -1 };
int main() {
	string s;
	cin >> s;
	if (s.substr(s.length()-2, 2) == "ai") {
		cout << s.substr(0, s.length() - 2) + "AI" << endl;
	}
	else {
		cout << s + "-AI" << endl;
	}
}
            
            
            
        