Ad
  • Custom User Avatar

    Yes,for example "Divisors of 42 are : 1, 2, 3, 6, 7, 14, 21, 42" then you take square of each divisor and finally take sum by adding up all the squared divisors of 42 and test it to see if it is square by taking square root.
    1, 2, 3, 6, 7, 14, 21, 42 -> 1^2 + 2^2 + 3^2 + 6^2 + 7^2 + 14^2 + 21^2 + 42^2 = 2500 = 50 * 50 which is square.

  • Custom User Avatar

    true
    Description is so short and doesn't really define what's actually "line" in problems.

  • Custom User Avatar

    lol these lines make me laugh so hard
    if(totok == NULL) printf("ya fucked up malloc\n");
    if(output == NULL) printf("ya fucked up malloc\n");
    if(outputStreets == NULL) printf("ya fucked up malloc\n");
    if(outputNumbers == NULL) printf("ya fucked up malloc\n");

  • Custom User Avatar

    Funny why I never think of this. Nice One!