結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-11 02:46:00 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 308 bytes |
| 記録 | |
| コンパイル時間 | 1,251 ms |
| コンパイル使用メモリ | 212,868 KB |
| 実行使用メモリ | 7,968 KB |
| 最終ジャッジ日時 | 2026-06-24 14:09:00 |
| 合計ジャッジ時間 | 2,057 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
int n = s.length();
if(s[n-2]=='a' && s[n-1]=='i')
{
s[n-2] = 'A';
s[n-1] = 'I';
}
else
{
s += "-AI";
}
cout << s << '\n';
return 0;
}