結果
問題 | No.536 人工知能 |
ユーザー |
|
提出日時 | 2020-05-30 12:44:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 1,626 ms |
コンパイル使用メモリ | 168,284 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 10:36:48 |
合計ジャッジ時間 | 2,308 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ string s; cin>>s; int m; m=s.size()-1; if(s[m-1]=='a'&&s[m]=='i'){ s[m-1]=toupper(s[m-1]); s[m]=toupper(s[m]); } else { s=s+"-AI"; } cout << s << endl; }