結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-10-15 18:07:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 2,198 ms |
| コンパイル使用メモリ | 193,460 KB |
| 最終ジャッジ日時 | 2025-02-08 06:47:57 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
string S;
cin>>S;
int N = S.size();
if(S[N-2] == 'a' && S[N-1] == 'i'){
for(int i=0;i<N-2;i++) cout<<S[i];
cout<<"AI"<<endl;
return 0;
}
cout<<S<<"-AI"<<endl;
}
keisuke6