竞赛
考级
潜龙暗虎
CuSO4
#include<cstdio> #include<iostream> #include<cmath> using namespace std; int main(){ int a,b; double c=0.0; cin>>a; for(int i=1;i<=a;i++){ cin>>b; if(b<=70)c=c+0.1; else { while(1){ b-=70; c=c+0.1; if(b<0)break; } } } cout<<c; return 0; }
准
特蕾西娅~
注:没流量电话卡无话费
TN Hacker
一时想起,四季等你
import math n=int(input()) list1=map(int,input().split()) sum=0 for i in list1: sum+=math.ceil(i/70) print("%.1f"%(sum*0.1))
广州珠江-大鸟老师
???
#include<bits/stdc++.h> using namespace std; int main(){ int a; double c=0; cin>>a; for(int i=1;i<=a;i++){ int b; cin>>b; if(b<=70){ c+=0.1; } else{ while(b>=0){ c+=0.1; b-=70; } } } cout<<c; return 0; }
人机猫
Mr.zou
枫岚
挑战不用iostream。
毛奕程
有事找大号
共34条