ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

What's wrong with my code?
Posted by newfish 18 Dec 2013 14:29
#include <stdio.h>
#include <math.h>

int main(void)
{
    int i = 0;
    unsigned long long a;
    double b[1024];

    while (EOF != scanf("%Ld", &a))
    {
        b[i++] = sqrt(a);
    }

    while (i--)
        printf("%.4f\n", b[i]);

    return 0;
}
Re: What's wrong with my code?
Posted by Mekhriddin 22 Dec 2013 21:55


Edited by author 22.12.2013 21:56