diff --git a/VIJOS/1282_972964894.cpp b/VIJOS/1282_972964894.cpp new file mode 100644 index 0000000..7e35166 --- /dev/null +++ b/VIJOS/1282_972964894.cpp @@ -0,0 +1,32 @@ +#include +#include +using namespace std; +struct leaf{ + long long x,y,z; +}a[50000]; +long long n,k,w[10],i; + +bool cmp(leaf a,leaf b){ + return (a.x>b.x) || (a.x==b.x && a.z>n>>k; + for (i=0;i<10;i++) cin>>w[i]; + for (i=0;i>a[i].x; + a[i].z=i+1; + } + sort(a,a+n,cmp); + for (i=0;i