結果

問題 No.536 人工知能
ユーザー shioya
提出日時 2018-07-21 14:18:13
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 816 ms
コンパイル使用メモリ 54,484 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 04:50:07
合計ジャッジ時間 982 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.536 人工知能
#include<iostream>
#include<string>
using namespace std;

int main()
{
	string S;
	cin >> S;
	cout << S[S.length()-1];
	if (S[S.length() - 1] == 'a'|| S[S.length() - 1] == 'A') {
		S[S.length() - 1] = 'A';
		S += 'I';
	}
	else S += "-AI";
	cout << S;
	return 0;
}
0