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? Че не так ? (C++)
Posted by Zalkar 14 Nov 2016 12:35
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main() {
long long n,i=0,c=0;
double a[100001];
 while(cin>>n){
  a[i]=sqrt(n);
   i++;
   c++;
}
for(int i=c-1; i>=0; i--)
 cout<<fixed<<setprecision(4)<<a[i]<<endl;
 system("pause");
  return 0;
}
Re: What's wrong with my code? Че не так ? (C++)
Posted by German 14 Nov 2016 16:26
The size of the input stream does not exceed 256K