| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 57329 | 老师 | 排队买票 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 195 | 2022-08-05 12:31:26 |
#include<bits/stdc++.h> using namespace std; int n,res; string a[30]; int main(){ cin>>n; for(int i=2;i<=n;i++){ cin>>a[i]; if(a[i]!=a[i-1]) res++; } cout<<res+1; return 0; }