結果

問題 No.536 人工知能
ユーザー Torin3600Torin3600
提出日時 2017-07-10 17:14:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 140 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-04-16 12:31:39
合計ジャッジ時間 1,365 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,712 KB
testcase_01 AC 37 ms
51,456 KB
testcase_02 AC 37 ms
51,828 KB
testcase_03 AC 36 ms
51,968 KB
testcase_04 AC 37 ms
52,224 KB
testcase_05 AC 36 ms
51,456 KB
testcase_06 AC 36 ms
51,968 KB
testcase_07 AC 37 ms
51,840 KB
testcase_08 AC 37 ms
51,968 KB
testcase_09 AC 36 ms
51,712 KB
testcase_10 AC 36 ms
52,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input())
if s[len(s)-2] =='a' and s[len(s)-1] =='i':
	del s[len(s)-2:len(s)]
	s.append("AI")
else:
	s.append("-AI")
print("".join(s))
0