結果

問題 No.1643 Not Substring
ユーザー 蜜蜂蜜蜂
提出日時 2020-11-23 11:35:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 329 bytes
コンパイル時間 1,670 ms
コンパイル使用メモリ 166,292 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-03 20:47:39
合計ジャッジ時間 2,761 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

using ll = long long;
#define fi first
#define se second

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