結果

問題 No.559 swapAB列
ユーザー ooooobaoooooba
提出日時 2021-03-14 20:24:10
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 508 bytes
コンパイル時間 1,072 ms
コンパイル使用メモリ 112,188 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-24 02:34:04
合計ジャッジ時間 1,799 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    string s;
    cin >> s;
    int32_t cnt = 0;
    for (auto i = 0; i < s.size(); ++i) {
        if (s[i] != 'A')
            continue;
        ++cnt;
    }
    cout << cnt << endl;
    return 0;
}
0