結果
問題 |
No.536 人工知能
|
ユーザー |
|
提出日時 | 2017-10-23 21:44:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 606 ms |
コンパイル使用メモリ | 67,484 KB |
最終ジャッジ日時 | 2025-01-05 03:26:22 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 5 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { string s; cin >> s; if (s.size() < 2)cout << s << "-AI" << endl; else if (s.back() == 'i'&&s[s.size() - 1] == 'a')cout << s.substr(0, s.size() - 2) << "AI" << endl; else cout << s << "-AI\n"; }