# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165272 | itiam | Aron (COCI17_aron) | C++11 | 2 ms | 376 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 <iostream>
#include <string>
using namespace std;
int main(){
int N;
cin >> N;
int M=N+1,br=0;
string P="",S;
for (int i=0;i<N;i++){
cin >> S;
if (P!=S){
M-=br;
br=0;
P=S;
}
else br+=1;
//cout << M << "\n";
}
M-=br;
br=0;
cout << M;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |