/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 324.0 KiB
#2 Wrong Answer 4ms 636.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin >> t;
    while (t--)
    {
        int n;
        cin >> n;
        string str;
        cin >> str;
        vector<char> v;
        for (int i = 1; i < n; i++)
        {
            if (str[i] == '0')
            {
                v.push_back(str[i]);
            }
        }
        cout << v.size() << endl;
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1016 Swap sort
Contest
Brain booster - 1
Language
C++20 (G++ 13.2.0)
Submit At
2023-12-31 14:25:16
Judged At
2024-11-11 03:46:18
Judged By
Score
0
Total Time
4ms
Peak Memory
636.0 KiB