Submission #72687184


Source Code Expand

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

using ll = long long;
using mi = map<int,int>;
using ml = map<long long,long long>;
using mc = map<char, int>;

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string s;
    cin >> s;
    int total = 0;
    for(auto c : s) {
        if(c == 'i' || c == 'j') total++;
    }

    cout << total << '\n';
    return 0;
}

Submission Info

Submission Time
Task A - Count .
User sauat0nis
Language C++ IOI-Style(GNU++20) (GCC 14.2.0)
Score 100
Code Size 492 Byte
Status AC
Exec Time 0 ms
Memory 1704 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 16
Set Name Test Cases
Sample sample00.txt, sample01.txt, sample02.txt
All sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt
Case Name Status Exec Time Memory
sample00.txt AC 0 ms 1704 KiB
sample01.txt AC 0 ms 1704 KiB
sample02.txt AC 0 ms 1704 KiB
testcase00.txt AC 0 ms 1704 KiB
testcase01.txt AC 0 ms 1704 KiB
testcase02.txt AC 0 ms 1704 KiB
testcase03.txt AC 0 ms 1704 KiB
testcase04.txt AC 0 ms 1704 KiB
testcase05.txt AC 0 ms 1704 KiB
testcase06.txt AC 0 ms 1704 KiB
testcase07.txt AC 0 ms 1704 KiB
testcase08.txt AC 0 ms 1704 KiB
testcase09.txt AC 0 ms 1704 KiB
testcase10.txt AC 0 ms 1704 KiB
testcase11.txt AC 0 ms 1704 KiB
testcase12.txt AC 0 ms 1704 KiB