| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 57330 | 陈思雨 | 排队买票 | C++ | Wrong Answer | 55 | 0 MS | 252 KB | 197 | 2022-08-05 12:35:07 |
#include<bits/stdc++.h> using namespace std; int n,res=1; 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; }