| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5593 | 我是李言 | 珠子计算 | C++ | Wrong Answer | 33 | 0 MS | 256 KB | 223 | 2020-08-14 14:38:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[1001]={0}; int n,m=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ if(a[i]!=a[i+1]) m++; } cout<<m; return 0; }