結果

問題 No.536 人工知能
ユーザー d_seid_sei
提出日時 2019-08-20 21:51:24
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 489 bytes
コンパイル時間 682 ms
コンパイル使用メモリ 74,340 KB
実行使用メモリ 8,832 KB
最終ジャッジ日時 2024-04-16 04:26:19
合計ジャッジ時間 2,810 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include <vector>
#include<cmath>
using namespace std;
typedef long long int lont;
int main() {
	string S;
	int Z = S.size();
	vector<char>vec(Z);
	for (int ia = 0; ia < Z; ia++) {
		cin >> vec.at(ia);
	}
	if (vec.at(Z - 3) == 'a' && vec.at(Z - 2) == 'i') {
		for (int ib = 0; ib < Z - 2; ib++) {
			cout << vec.at(ib);
		}
		cout << "AI" << endl;
	}
	else {
		for (int ic = 0; ic < Z; ic++) {
			cout << vec.at(ic);
		}
		cout << "-AI" << endl;
	}
}
0