NOIP2009年普及组阅读程序填写结果题:
#include <iostream> usingnamespacestd; 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; return0; }
输入:20 12
输出:_______