| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56815 | 王籽易 | 排队买票 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 224 | 2022-08-03 14:56:20 |
#include <bits/stdc++.h> using namespace std; int n; char a[40],t='-',s=1; int main(){ cin>>n; getchar(); for(int i=1;i<=n;i++){ cin>>a[i]; getchar(); if(a[i]!=t) s++,t=a[i]; } cout<<s; return 0; }