游客 Signup | Login
中文 | En

3797 - 第一章:整数运算《练习1:整数减法》

  输入两个整数a和b,输出它们的差。

Input

输入中只有一行,包括两个整数。两个整数间用一个空格隔开。

Output

只包括一个整数,即输入的两整数之差。

Examples

Input

5 2

Output

3

Solution C

#include <stdio.h>

int main(void) {
	int a, b, c;
	scanf("%d%d", &a, &b);
	c = a - b;
	printf("%d", c);
	return 0;
}

Solution C++

#include<cstdio>
using namespace std;
int main()
{
	int a,b,s;
	scanf("%d%d",&a,&b);
	s=a-b;
	printf("%d\n",s);
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题