游客 Signup | Login
中文 | En

1329 - C语言程序设计教程(第三版)课后习题9.2

输入两个整数,求他们相除的余数。用带参的宏来实现,编程序。

Input

a b两个数

Output

a/b的余数

Examples

Input

3 2

Output

1

Solution C++

#include<iostream>
#define ZC(x,y) x%y
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	cout<<ZC(a,b)<<endl;
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题