NOIP2008年普及组初赛阅读程序写结果:
#include<iostream> usingnamespacestd; void foo(int a, int b, int c) { if(a > b) foo(c, a, b); else cout<<a<<','<<b<<','<<c<<endl; } int main() { int a, b, c; cin >> a >> b >> c; foo(a, b, c); return0; }
输入: 3 1 2
答案:____