結果

問題 No.993 青色
ユーザー SotaUNSotaUN
提出日時 2020-11-02 18:13:20
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 90,684 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-29 12:06:45
合計ジャッジ時間 1,294 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 1 ms
4,380 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:17:31: 警告: 複数文字からなる文字定数 [-Wmultichar]
   17 |         if(s[i] + s[i + 1] == 'ao'){
      |                               ^~~~

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include <climits>
#include <iomanip>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
int main(){
    string s;
    cin >> s;
    for(int i = 0;i < (int)(s.size() - 1);i++){
        if(s[i] + s[i + 1] == 'ao'){
            s[i] = 'k';
            s[i + 1] = 'i';
        }
    }
    cout << s << endl;
}
0