結果
問題 | No.536 人工知能 |
ユーザー |
![]() |
提出日時 | 2017-08-16 00:33:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 450 ms |
コンパイル使用メモリ | 55,928 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 11:09:19 |
合計ジャッジ時間 | 930 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; if (str.substr(str.size() - 2, 2) == "ai") { std::cout << str.substr(0, str.size() - 2) + "AI\n"; } else { std::cout << str + "-AI\n"; } return 0; }