結果
問題 | No.536 人工知能 |
ユーザー |
![]() |
提出日時 | 2020-03-06 16:09:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 1,517 ms |
コンパイル使用メモリ | 166,180 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 02:53:04 |
合計ジャッジ時間 | 2,049 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>#define INF 990000000//9using namespace std;int main() {string n;cin>>n;int te=(int)n.size();if(n[te-2]=='a' && n[te-1]=='i'){for(int i=0;i<te-2;i++){cout <<n[i];}cout <<"AI"<<endl;}else{for(int i=0;i<te;i++){cout <<n[i];}cout <<"-AI"<<endl;}}