Home > Back-end >  Help you a great god, and trouble to see what's the problem with my program. Please, thank you
Help you a great god, and trouble to see what's the problem with my program. Please, thank you

Time:11-01

//one day, swim APicebar began to play the sound, the sound travel mechanism has a potential value
//is the best 30, the first such calculation: (average potential value x 3 + visit nearly 10 average potential value)/4
//this day, the sound server to visit and exploded
//he would like to know their potential value, and the above data
//but he lazy cancer made
//now, would you please help him to write a program to calculate the
//input format
//first line 30 a two decimal places, on behalf of the 30 best
//the second line 10 a two decimal places, on behalf of the 10 recent achievement
//output format
//a two decimal places, the potential value of the representative APicebar
//data range
//for all data, the potential value of each grade is less than 14
//sample input
//1
//12.82 12.73 12.66 11.83 10.93 10.78 9.75 9.65 9.03 8.41 8.27 8.11 7.46 6.97 6.27 6.02 4.86 4.03 3.46 3.34 3.18 2.93 2.6 2.01 1.9 1.66 1.04 0.77 0.55 0.01
//2
//13.63 11.94 10.46 10.0 9.8 4.72 4.68 3.36 1.86 0.96
# include
using namespace std;

Int main ()
{
Double a, [30].
Double b [10].
Int s=0;
int c=0;
int i;
for(i=0; i <30; I++)
{
Cin & gt;> A, [I].
S=s + a, [I].
}
Double d=s/30.00;
for(i=0; i <10; I++)
{
Cin & gt;> B [I];
C=c + b [I];
}
Double e=c/10.00;
Double j=(d * 3.00 + e)/4.
Cout}
  • Related