結果

問題 No.1643 Not Substring
ユーザー zezero
提出日時 2021-08-13 21:34:02
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 817 ms
コンパイル使用メモリ 95,804 KB
最終ジャッジ日時 2025-01-23 18:24:15
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 6 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <map>
#include <queue>
#include <cmath>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i=0;i < (int)(n);i++)

int main(){
    string s;
    cin >> s;
    for (int i = 0; i < int(s.size());i++){
        if (s[i] != 'a'){
            s.replace(i,1,"");
        }
    }
    cout << s+"a" << endl;
    

    return 0;
}
0