Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92221 | 只因你太美(Ikun 真爱粉) | 短信计费 | C++ | Accepted | 1 MS | 272 KB | 569 | 2024-09-28 16:30:08 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int n,m=0,nm; int z(int nm){ if(nm<=70)return 1; if(nm>70){ if(nm%70==0) return nm/70; else return nm/70+1; } } int main(){ cin>>n; for(int i=0;i<n;i++){ cin>>nm; m+=z(nm); } cout<<m/10<<"."<<m%10; return 0; }