結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-19 23:10:56 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 60,068 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-05 01:46:00 |
| 合計ジャッジ時間 | 1,062 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <stdio.h>
#include <string>
int main(){
//input
char S[10+1];
scanf("%s",S);
std::string s(S);
//transform s
int l = s.length();
if (s[l-2] == 'a' && s[l-1] == 'i'){
s[l-2] = 'A';
s[l-1] = 'I';
}else{
s += "-AI";
}
//output
printf("%s\n",s.c_str());
return 0;
}