Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
56936 张志鹏 排队买票 C++ Wrong Answer 22 0 MS 256 KB 210 2022-08-03 17:03:54

Tests(2/9):


#include<bits/stdc++.h> using namespace std; int ans; char front='1'; int n; int main(){ cin>>n; while(n--){ char a; cin>>a; if(front!=a) ans++,front=ans; } cout<<++ans; return 0; }


Judgement Protocol: