首页 > 其他 > 详细

P2393-yyy loves Maths II

时间:2019-10-03 12:05:45      阅读:142      评论:0      收藏:0      [点我收藏+]
 1 #include <iostream>
 2 #define _for(i,a,b) for(int i = (a);i < b;i ++)
 3 #define _rep(i,a,b) for(int i = (a);i > b;i --)
 4 #define INF 0x3f3f3f3f
 5 #define MOD 1000000007
 6 #define maxn 50003
 7 typedef long long ll;
 8 
 9 using namespace std;
10 typedef pair<int,int> P;//first 是最短距离,second 是顶点编号
11 inline ll read()
12 {
13     ll ans = 0;
14     char ch = getchar(), last =  ;
15     while(!isdigit(ch)) last = ch, ch = getchar();
16     while(isdigit(ch)) ans = (ans << 1) + (ans << 3) + ch - 0, ch = getchar();
17     if(last == -) ans = -ans;
18     return ans;
19 }
20 inline void write(ll x)
21 {
22     if(x < 0) x = -x, putchar(-);
23     if(x >= 10) write(x / 10);
24     putchar(x % 10 + 0);
25 }
26 long double rnt = 0.0;
27 long double a;
28 int main()
29 {
30 //    freopen("testdata (2).in","r+",stdin);
31     while(~scanf("%Lf",&a))
32         rnt += a*1000000;
33     printf("%.5Lf",rnt/1000000);
34     return 0;
35 }

 

P2393-yyy loves Maths II

原文:https://www.cnblogs.com/Asurudo/p/11619125.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!