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 1823. Ideal Gas

For whom, who get WA 6,7
Posted by Gleb_Kazantaev(NNSTU) 4 Jun 2014 03:04
double res = (bpi*bvi)/(bti*R);
cout << "n = ";
if(res < 1)
    printf("%.0f", res);
else
    printf("%.6f", res);

When res (n) < 1 u should cout 0 else u should cout number with an error.
Good Luck!