結果
問題 |
No.1643 Not Substring
|
ユーザー |
![]() |
提出日時 | 2023-04-14 21:38:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 65,112 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 12:20:41 |
合計ジャッジ時間 | 1,637 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { string s; cin >> s; int a = 0; for (int i = 0; i < (int)s.size(); i++) { if (s[i] == 'a') a++; } for (int i = 0; i <= a; i++) { cout << "a"; } cout << endl; }