1 solutions

  • 0
    @ 2024-8-19 14:45:18
    #include<bits/stdc++.h>
    using namespace std;
    int cal(int x)
    {
    	return (x+69)/70;
    }
    int main()
    {
    	int n;
    	cin>>n;
    	int s=0;
    	for(int i=1;i<=n;i++)
    	{
    		int x;
    		cin>>x;
    		s+=cal(x);
    	}
    	cout<<fixed<<setprecision(1)<<s/10.0;
    	return 0;
    }
    
    • 1

    Information

    ID
    112
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    41
    Accepted
    20
    Uploaded By