游客 Signup | Login
中文 | En

1132 - C语言4.7

设x和y是双精度浮点类型(double),其中x=1111111111111.111111111,y=2222222222222.222222222,输出x和y的和。

Input

Output

只有一行,x和y的和的%.4f格式。

请注意行尾输出换行。

Examples

Input

Output

3333333333333.3330

Solution C

#include<stdio.h>
int main(){
double x=1111111111111.111111111,y=2222222222222.222222222;
printf("%.4f\n",x+y);
return 0;
}

Solution C++

#include <stdio.h>
int main() {
	double x, y;
	x = 1111111111111.111111111; y = 2222222222222.222222222;
	printf("%.4f\n", x + y);
	return 0;
}

Time Limit 1 second
Memory Limit 32 MB
Discuss Stats
上一题 下一题