1342

吴梓玄  •  21天前


a uncorrect  answer ,don't copy.

 

#include <bits/stdc++.h> 
using namespace std; 
int main() 

int a=0,s,k=0; 
for(int i=1;i<=1000;i++){ 
 cin>>s; 
 a+=s; 
 if(a>=1e5){ 
  cout<<i<<' '; 
  break; 
 } 

k=a/s; 
printf("%.2f",k); 
return 0;  

 

 

don't copy!

don't copy!

don't copy!


评论: