reluctantcoder's blog

By reluctantcoder, history, 6 years ago, In English

I had written the entire 4 years of non-leap,leap, non-leap,non-leap as a string and also took the input as a string. the integer input is redundant. I used library function 'strstr' to compare the two inputs. By bruteforce, the answer must be 'yes' if their exists a substring like that otherwise a no. But it gives yes for all. can anyone tell me where is the error? I know the solution using the array. but i wanted to try this one out. Thanks in advance. This is a link to my solution http://codeforces.com/contest/899/submission/33410715

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it