結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
r2en_
|
| 提出日時 | 2017-07-04 01:08:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 338 bytes |
| コンパイル時間 | 495 ms |
| コンパイル使用メモリ | 68,948 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 12:57:45 |
| 合計ジャッジ時間 | 942 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
int main(){
string s;
cin >> s;
if(s.substr(s.size() - 2) == "ai"){
s[s.size() - 2] = 'A';
s[s.size() - 1] = 'I';
cout << s << endl;
}else{
cout << s << + "-AI" << endl;
}
return 0;
}
r2en_