2 条题解
-
2
点赞吧
allright
#include<bits/stdc++.h> #define int long long #define INF 0x3f3f3f3f #define INFSHORT 1e+3 #define INFINT 1e+10 #define INFLONGLONG 1e+19 using namespace std; char a[1919180]; double sum,l; signed main(){ while(cin>>a){ sum+=strlen(a); l++; } cout<<fixed<<setprecision(1)<<sum/l; return 0; }
信息
- ID
- 1094
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 8
- 标签
- 递交数
- 528
- 已通过
- 73
- 上传者