結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
shishimaiotoshi
|
| 提出日時 | 2021-08-15 01:20:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 1,583 ms |
| コンパイル使用メモリ | 166,820 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-06 06:05:34 |
| 合計ジャッジ時間 | 2,573 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n, o) for(int i = 0;i < (n);i++)
#define ou(x) cout << x << endl
#define ll long long
#define re return 0
int main(){
string s;
cin >> s;
int cnt = 0;
string a;
for(auto ss: s){
if(ss == 'a') cnt++;
}
rep(i, cnt + 1, 0){
a += "a";
}
ou(a);
re;
}
shishimaiotoshi