# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
696956 | 2023-02-07T17:07:19 Z | Deepesson | Homework (CEOI22_homework) | C++17 | 152 ms | 14292 KB |
#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
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 150 ms | 14080 KB | Output is correct |
2 | Correct | 152 ms | 14016 KB | Output is correct |
3 | Correct | 140 ms | 14004 KB | Output is correct |
4 | Correct | 150 ms | 14000 KB | Output is correct |
5 | Correct | 143 ms | 14000 KB | Output is correct |
6 | Correct | 144 ms | 14060 KB | Output is correct |
7 | Correct | 142 ms | 13992 KB | Output is correct |
8 | Correct | 144 ms | 13988 KB | Output is correct |
9 | Correct | 141 ms | 14028 KB | Output is correct |
10 | Correct | 147 ms | 14292 KB | Output is correct |
11 | Correct | 149 ms | 14092 KB | Output is correct |
12 | Correct | 141 ms | 14128 KB | Output is correct |
13 | Correct | 0 ms | 212 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |