#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { int s=0; for(int i=1;i<=n;i++) { int x;cin>>x; s+=x; if(i%5==0) s+=6; else s++; } cout<<s<<endl; } }
nyoj831签到
猜你喜欢
转载自blog.csdn.net/qq_37252519/article/details/79381018
今日推荐
周排行