题库 信息学奥赛题库 题目列表 #include <iostream> using namespac...
填空题

#include <iostream>
using namespace std;
int a,b;
int work(int a,int b) {
	if (a%b)
		return work(b,a%b);
	return b;
}
int main() {
	cin >> a >> b;
	cout << work(a,b) << endl;
	return 0;
}

输入:123 321

输出:_________

题目信息
阅读程序 填空题 2009年 初赛
-
正确率
0
评论
22
点击
QQ
微信