結果

問題 No.536 人工知能
ユーザー SeiyaT
提出日時 2021-09-10 11:44:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 257 bytes
コンパイル時間 1,782 ms
コンパイル使用メモリ 161,160 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-02 20:59:38
合計ジャッジ時間 2,533 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll=long long;
ll mod=1000000007;
ll INF=1LL<<60;

int main() {
	string S;
	cin >> S;
	int N=S.size();
	if(S.substr(N-2,2)=="ai"){
		S[N-2]='A';
		S[N-1]='I';
	}
	else{
		S+="-AI";
	}
	cout << S << endl;
}
0