結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
newlife171128
|
| 提出日時 | 2017-12-09 21:31:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 455 bytes |
| コンパイル時間 | 591 ms |
| コンパイル使用メモリ | 75,268 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 05:32:32 |
| 合計ジャッジ時間 | 1,133 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
#include<sstream>
#include <queue>
#include <limits>
#include <cstdlib>
#include <deque>
#include <map>
using namespace std;
int main() {
string s;
cin>>s;
int end =s.length();
if(s[end-1] =='i' && s[end-2] == 'a'){
for(int i=0; i<end-2; i++){
cout<<s[i];
}
cout<<"AI"<<endl;
}else {
cout<<s+"-AI"<<endl;
}
return 0;
}
newlife171128