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

I can not format output Wrong Answer
Posted by Konstantine Babuadze 13 May 2015 15:51
#include <iostream>
#include <stdio.h>
#include <iomanip>
#include <math.h>
using namespace std;

void main()
        {
            int n=0;
            int i=1,j;
            double number;
             float a[140000];


            while (cin)
            {


                cin>>number;
                a[i] = sqrt(number);
                n+=1;
                i++;

            }
            for (j = n-1; j>=1; j--)
            {
            printf("%f \n",a[j]);
            }
    system("pause");
        }

Edited by author 13.05.2015 15:57
Re: I can not format output Wrong Answer
Posted by Konstantine Babuadze 13 May 2015 20:18
ive done it ! Its impossible to do this with arrays.. should use vectors