Ad
  • Default 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.

  • Default User Avatar

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

  • Default 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");

  • Default User Avatar

    Funny why I never think of this. Nice One!