# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
696956 | Deepesson | Homework (CEOI22_homework) | C++17 | 152 ms | 14292 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>
int main()
{
///subtask 3
int count=0;
std::string s;
std::cin>>s;
int N=0;
for(auto&x:s)if(x=='?')++N;
char expected = s[1];
for(int i=0;i!=s.size();++i){
if(s[i]=='m'){
if(s[i+1]==expected)++count;
else break;
}
}
std::cout<<N-count<<"\n";
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |