| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56934 | 陈万瑄 | 排队买票 | C++ | Accepted | 100 | 0 MS | 260 KB | 195 | 2022-08-03 17:03:20 |
#include<bits/stdc++.h> using namespace std; int n,res=1; string a[30]; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]!=a[i-1]) res++; } cout<<res; return 0; }