mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1772.c
This commit is contained in:
parent
0496e70793
commit
641ffa62f2
14
QUSTOJ/1772.c
Normal file
14
QUSTOJ/1772.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
int a[8];
|
||||||
|
int cmp(const void* a,const void* b)
|
||||||
|
{
|
||||||
|
return *(int*)b-*(int*)a;
|
||||||
|
}
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
for(int i=0;i<3;i++) scanf("%d",&a[i]);
|
||||||
|
qsort(a,3,sizeof(int),cmp);
|
||||||
|
for(int i=0;i<2;i++) printf("%d ",a[i]);
|
||||||
|
return printf("%d\n",a[2]),0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user