April Fools Contest 2017, problem: (B) Kids’ Riddle Solution in C

By |2017-04-09T23:45:21+00:00April 9th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include<stdio.h> int main(void) { unsigned x, y, result = 0; scanf("%u", &x); do { y = x & 15; x >>= 4; if (y == 0 || y == 4 || y == 6 || y == 9 || y == 10 || y [...]