結果

問題 No.1643 Not Substring
ユーザー atjh16atjh16
提出日時 2021-09-23 21:19:52
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 2,110 ms
コンパイル使用メモリ 190,540 KB
最終ジャッジ日時 2025-01-24 16:20:52
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

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

string s;
int k = 0;

int main()
{
	cin >> s;

	for (int i = 0; i < s.size(); i++) {
		if (s[i] == 'a')
			k++;
	}

	for (int i = 0; i < k + 1; i++)
		cout << "a";

	cout << endl;
}
0