結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-07 01:23:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 54,872 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-06 23:58:00 |
| 合計ジャッジ時間 | 1,159 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
using namespace std;
int main(void)
{
string id;
cin >> id;
if (id[id.length() - 1] == 'i' && id[id.length() - 2] == 'a')
{
id[id.length() - 2] = 'A';
id[id.length() - 1] = 'I';
cout<< id << endl;
}
else
cout << id << "-AI" << endl;
return 0;
}