結果
問題 | No.536 人工知能 |
ユーザー |
|
提出日時 | 2019-05-02 07:30:31 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 606 ms |
コンパイル使用メモリ | 55,272 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-31 13:06:25 |
合計ジャッジ時間 | 1,330 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(){string ID;cin>>ID;int length=ID.length();if((ID[length-2]=='a')&&(ID[length-1]=='i')){ID[length-2]='A';ID[length-1]='I';}else{ID+="-AI";}cout<<ID<<endl;return 0;}