diff --git a/VIJOS/1498_1085165020.cpp b/VIJOS/1498_1085165020.cpp new file mode 100644 index 0000000..230d5c8 --- /dev/null +++ b/VIJOS/1498_1085165020.cpp @@ -0,0 +1,59 @@ +#include +#include +#include +#include +using namespace std; +struct Node +{ + int sum,num; +}x[1005],y[1005]; + +bool rule1(Node a,Node b) +{ + return a.sum>b.sum; +} + +bool rule2(Node a,Node b) +{ + return a.num> m >> n >> k >> l >> d; + for(int i=0;i<=m;i++) + { + x[i].num=i; + } + for(int i=0;i<=n;i++) + { + y[i].num=i; + } + for (int i=0,xi,yi,pi,qi;i