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

C: murder. Help please
Posted by Georg 8 Sep 2019 10:13
#include<stdio.h>
#include<math.h>
#define SIZE 1024/sizeof(long long int)*256

long long int arr[SIZE];

int main(){

int i = 0;

    while(scanf("%lli", &arr[i]) == 1)
        i++;

printf("\n"); i -= 1;

    while(i >= 0){
        printf("%.4Lf\n", sqrtl(arr[i]));
        i--;
    }

return 0;
}



Edited by author 08.09.2019 10:26
Re: C: murder. Help please
Posted by Georg 8 Sep 2019 11:20
Решил с грехом пополам, здесь писать не буду. Остались сомнения, что в условии(в тестах) правильно размер массива подсчитан, этот(SIZE) не катит.