# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
995265 | gmroh06 | 스탬프 수집 (JOI16_ho_t2) | C++14 | 2 ms | 2348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
inline void fastio() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
ll n;
string s;
int main() {
fastio();
cin >> n >> s;
vector<ll> js(n + 1), is(n + 1);
for (ll i = 0; i < n; i++) {
js[i + 1] = js[i] + (s[i] == 'J');
is[i + 1] = is[i] + (s[i] == 'I');
}
ll jt = 0, it = 0, ot = 0, ans = 0;
for (ll i = 1; i < n; i++) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |