mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
This commit is contained in:
parent
495bb21001
commit
7dd0526c48
18
NYOJ/41.cpp
Normal file
18
NYOJ/41.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user