游客 Signup | Login
中文 | En

2439 - 求整数平均数I

从键盘读入三个整数,计算这三个整数的平均数并输出。

在行末输出一个换行符。

Input

输入为三个整数。

Output

输出这三个数的平均数。


<strong>在行末输出一个换行符。</strong> 

Examples

Input

3 4 5

Output

4

Solution C

#include<stdio.h>

int main()
{   
    int a,b,c,d;
	scanf("%d%d%d",&a,&b,&c);
	d=(a+b+c)/3;
	printf("%d\n",d);
	return 0;
}

Solution C++

#include<stdio.h>

int main()
{
	int a,b,c,d;
	scanf("%d%d%d",&a,&b,&c);
	d=(a+b+c)/3;
	printf("%d\n",d);
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题