From 7dd0526c4842081a430801861369ecc6467bda4d Mon Sep 17 00:00:00 2001 From: root Date: Sun, 10 Apr 2016 09:09:20 +0800 Subject: [PATCH] --- NYOJ/41.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 NYOJ/41.cpp diff --git a/NYOJ/41.cpp b/NYOJ/41.cpp new file mode 100644 index 0000000..0390a28 --- /dev/null +++ b/NYOJ/41.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +using namespace std; + +int main() +{ + int a; + vector 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; +} \ No newline at end of file