#include <iostream> using namespace std; int main(int argc, char *argv[]) { string a, b; cin >> a >> b; cout << (a > b ? b : a) << endl; }
[此贴子已经被作者于2018-5-24 23:51编辑过]
#include <iostream> #include <string> #include <algorithm> using namespace std; int main( void ) { string a, b; cin >> a >> b; cout << min(a,b) << endl; }