| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6129 | asdfghjkl123456789 | 珠子计算 | C++ | Compile Error | 0 | 0 MS | 0 KB | 232 | 2020-08-23 19:58:42 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,ans=0; cin>>a; bool x[a]; for(int i=0;i<a;i++){ cin>>x[i]; } for(int i=0;i<a-1;i++){ if(x[i]+x[i+1]==1) ans++; } cout<<ans;<<endl; return 0; }