Codeforces Round #444 (Div. 2), problem: (A) Div. 64 Solution In C/C++

By | 2017-11-07T19:58:04+00:00 November 7th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include<stdio.h> char s[107]; int main() { scanf(" %s",s); int x=0,y=0,z=0; while(s[x]=='0') x++; while(s[z]!=0) z++; for(int i=x+1;i<z;i++) if(s[i]=='0') y++; if(y>=6) printf("yes"); else printf("no"); return 0; }