結果
問題 | No.536 人工知能 |
ユーザー |
|
提出日時 | 2020-03-17 00:19:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 2,007 ms |
コンパイル使用メモリ | 193,548 KB |
最終ジャッジ日時 | 2025-01-09 07:25:49 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i=0;i<(n);i++)using namespace std;int main(){string s; cin>>s;int n=s.length();if(s.substr(n-2)=="ai") cout<<s.substr(0,n-2)<<"AI\n";else cout<<s<<"-AI\n";return 0;}