This commit is contained in:
root 2016-04-10 09:09:20 +08:00
parent 495bb21001
commit 7dd0526c48

18
NYOJ/41.cpp Normal file
View File

@ -0,0 +1,18 @@
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int a;
vector<int> vec;
for(int i=0;i<3;i++)
{
scanf("%d",&a);
vec.push_back(a);
}
sort(vec.begin(),vec.end());
printf("%d %d %d\n",vec.at(0),vec.at(1),vec.at(2));
return 0;
}