結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
sorag
|
| 提出日時 | 2022-08-09 10:43:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 481 bytes |
| コンパイル時間 | 756 ms |
| コンパイル使用メモリ | 77,872 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 17:28:39 |
| 合計ジャッジ時間 | 1,365 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <map>
#include<string>
#include<queue>
#include<math.h>
#define ll long long
#define P pair<int,int>
#define lP pait<ll,ll>
using namespace std;
int main() {
string s;
cin>>s;
if(s[s.size()-2]=='a' and s[s.size()-1]=='i'){
cout<<s.substr(0,s.size()-2)<<"AI"<<endl;
}
else {
s.push_back('-');
s.push_back('A');
s.push_back('I');
cout<<s<<endl;
}
return 0;
}
sorag