結果
問題 | No.536 人工知能 |
ユーザー |
![]() |
提出日時 | 2018-01-17 17:18:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 2,057 ms |
コンパイル使用メモリ | 194,748 KB |
最終ジャッジ日時 | 2025-01-05 07:35:13 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){string s; cin>>s;int n=size(s);cout<<(s.substr(n-2)=="ai"?s.substr(0, n-2)+"AI":s+"-AI")<<endl;}