/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
double vector1[] = {2.3, 4.7, 1.4};
double vector2[] = {1.6, 6.2, 3.5};
double vector3[] = new double[6];
double soma1 = 0, soma2 = 0;
for (double num : vector1) {
soma1 += num;
}
for (double num : vector2) {
soma2 += num;
}
if(soma1>soma2){
System.
arraycopy(vector1,
0, vector3,
0, vector1.
length); System.
arraycopy(vector1,
0, vector3, vector1.
length, vector2.
length);
} else {
System.
arraycopy(vector2,
0, vector3,
0, vector2.
length); System.
arraycopy(vector2,
0, vector3, vector2.
length, vector1.
length); }
for (double array : vector3) {
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWRvdWJsZSB2ZWN0b3IxW10gPSAgezIuMywgNC43LCAxLjR9OwogICAgICAgIGRvdWJsZSB2ZWN0b3IyW10gPSB7MS42LCA2LjIsIDMuNX07CiAgICAgICAgZG91YmxlIHZlY3RvcjNbXSA9IG5ldyBkb3VibGVbNl07CiAgICAgICAgZG91YmxlIHNvbWExID0gMCwgc29tYTIgPSAwOwogICAgICAgIAogICAgICAgIAogICAgICAgIGZvciAoZG91YmxlIG51bSA6IHZlY3RvcjEpIHsKICAgICAgICAgIHNvbWExICs9IG51bTsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgZm9yIChkb3VibGUgbnVtIDogdmVjdG9yMikgewogICAgICAgICAgc29tYTIgKz0gbnVtOwogICAgICAgIH0gICAgICAgIAogICAgICAgIAogICAgICAgIGlmKHNvbWExPnNvbWEyKXsKICAgICAgICAgICAgCiAgICAgICAgICAgIFN5c3RlbS5hcnJheWNvcHkodmVjdG9yMSwgMCwgdmVjdG9yMywgMCwgdmVjdG9yMS5sZW5ndGgpOyAgCiAgICAgICAgICAgIFN5c3RlbS5hcnJheWNvcHkodmVjdG9yMSwgMCwgdmVjdG9yMywgdmVjdG9yMS5sZW5ndGgsIHZlY3RvcjIubGVuZ3RoKTsKICAgICAgICAgICAgCiAgICAgICAgfSBlbHNlIHsgIAogICAgICAgICAgICAKICAgICAgICAgICAgU3lzdGVtLmFycmF5Y29weSh2ZWN0b3IyLCAwLCB2ZWN0b3IzLCAwLCB2ZWN0b3IyLmxlbmd0aCk7ICAKICAgICAgICAgICAgU3lzdGVtLmFycmF5Y29weSh2ZWN0b3IyLCAwLCB2ZWN0b3IzLCB2ZWN0b3IyLmxlbmd0aCwgdmVjdG9yMS5sZW5ndGgpOyAgICAgICAgICAgIAogICAgICAgIH0KICAgICAgICAKICAgICAgICAgICAgICAgCiAgICAgICBmb3IgKGRvdWJsZSBhcnJheSA6IHZlY3RvcjMpIHsKICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoYXJyYXkrIiAiKTsKICAgICAgIH0KCX0KfQ==