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

Whats wrong? (but works correctly on my computer)
Posted by severlord 21 Mar 2013 16:58
#include <stdio.h>
#include <math.h>

int main()
{
        unsigned long long int in[320000];
        int count = 0;
        while (scanf("%llu",&in[count]) != EOF) count++;
        while (count > 0){
                printf("%.4Lf\n",sqrtl(in[count-1]));
                count--;
                }
        return 0;
}

Edited by author 21.03.2013 17:19
Re: Whats wrong? (but works correctly on my computer)
Posted by severlord 22 Mar 2013 12:17
#include <stdio.h>
#include <math.h>

int main()
{
        unsigned long long int in[131072];
        int count = 0;
        while (scanf("%llu",&in[count]) == 1) count++;
        while (count > 0){
                printf("%.4Lf\n",sqrtl(in[count-1]));
                count--;
                }
        return 0;
}