Привіт, друзі!
Як ми і обіцяли анонос кодінг dojo!
Ви коли-небуть грали в Тетріс, а може ви й зараз є фаном цієї гри? Тоді у нас для тебе чудові новини!
Ми перенесли тетріс у веб і у тебе є можливість зіграти в гру, але не просто натискаючи стрілочки, а написати власний алгоритм! 😌
Долучайся до нашого нового кодінг dojo івенту “Think you can Tetris?”. Клич друзів та покажи хто тут гуру тетріса і алгоритмів! 🏆 Найкращим обіцяємо подарунки, а лінивим - стрім івенту. 😆
Коли? Стартуємо 17 грудня о 13:00. Закінчуємо 18 грудня о 17:00.
Зареєструватися 👉🏻 https://dojorena.io/events/149
Стрім івенту буде на нашому каналі 👉🏻 https://www.youtube.com/channel/UCY82a2l4__P1F2QvLPbwnmA
Маєш питання чи хочеш побалакати, чекаємо тебе у коментарях👇🏻
Як ми і обіцяли анонос кодінг dojo!
Ви коли-небуть грали в Тетріс, а може ви й зараз є фаном цієї гри? Тоді у нас для тебе чудові новини!
Ми перенесли тетріс у веб і у тебе є можливість зіграти в гру, але не просто натискаючи стрілочки, а написати власний алгоритм! 😌
Долучайся до нашого нового кодінг dojo івенту “Think you can Tetris?”. Клич друзів та покажи хто тут гуру тетріса і алгоритмів! 🏆 Найкращим обіцяємо подарунки, а лінивим - стрім івенту. 😆
Коли? Стартуємо 17 грудня о 13:00. Закінчуємо 18 грудня о 17:00.
Зареєструватися 👉🏻 https://dojorena.io/events/149
Стрім івенту буде на нашому каналі 👉🏻 https://www.youtube.com/channel/UCY82a2l4__P1F2QvLPbwnmA
Маєш питання чи хочеш побалакати, чекаємо тебе у коментарях👇🏻
Once more Happy Birthday JavaScript🎉🎊
Created 25 years ago, JavaScript was the first and the only noscripting language that was supported natively by web browsers.
Let's read about what people in tech had to say about JavaScript when it debuted in 1995!
#epamNews #epamJS #epamJavaScript
Created 25 years ago, JavaScript was the first and the only noscripting language that was supported natively by web browsers.
Let's read about what people in tech had to say about JavaScript when it debuted in 1995!
#epamNews #epamJS #epamJavaScript
Holiday season is coming 🎄
Catch up Advent React Calendar for Christmas 2020
#epamNews #epamFrontend
Catch up Advent React Calendar for Christmas 2020
#epamNews #epamFrontend
Time for our JS QUIZ in December!
Quiz rules:
1) Try to solve task below, write the program code in your repo and add comment with link to this post;
2) The first two players with intresting and optimal solutions will receive wonderful presents!
3) Our game is limited in time, we are going to wait for your answers till Monday (14th of December 2020).
Task will be in next post👇🏻
Quiz rules:
1) Try to solve task below, write the program code in your repo and add comment with link to this post;
2) The first two players with intresting and optimal solutions will receive wonderful presents!
3) Our game is limited in time, we are going to wait for your answers till Monday (14th of December 2020).
Task will be in next post👇🏻
JS QUIZ TASK😍:
Every year Santa Claus faces a more and more difficult task. The number of children in the world is increasing rapidly, while Santa's old patched up sack can only accommodate a few presents at a time. And every child wants their own very special present... This means that, ever so often, once his sack is partially or completely empty, Santa has to fly back to his base in Lapland to replenish his supplies. So irksome has this become that Santa has decided to resort to modern operational research to aid him in his sack-packing and route planning. Please write a program which will guide Santa through his daily chores.
Input
The input starts with a line containing a single integer t<=100, the number of test cases. t test cases follow.
The first line of every test case consists of four integers n x y S, denoting the number of good children who will receive a present from Santa, the x and y coordinates of Santa's home base, and the amount of space in the sack, respectively (1<=n<=10000, -10000<=x,y<=10000, 1<=S<=100000). n lines follow, each consisting of three integers xi yi si - the x and y coordinates of the i-th child's home, and the amount of space taken up by this child's present when in Santa's sack, respectively (-10000<=xi,yi<=10000, 1<=si<=S).
Output
For each test case output a sequence of space separated integers, corresponding to successive actions that should be taken by Santa:
-i (1<=i<=n) signifies that Santa should travel to his base and pack the present for the i-th child into his sack (he needs to have sufficient room in his sack to do this).
i (1<=i<=n) signifies that Santa should travel to the i-th child's home and leave a present for him/her.
0 signifies that Santa should travel back to his base and end his Christmas activity (and that you want to proceed to the next test case).
Assume that Santa starts in his base and always travels between points by the shortest possible route (along straight lines). All distances are measured using the Euclidean metric.
Score
The score awarded to your program is the total of all scores obtained for its individual test cases. The score for a test case is calculated as I/P, where P stands for the distance covered by Santa in your solution, while I is a test case specific constant (I= n*d+D*(s1+...+sn)/S; d is the mean distance between two homes, while D is the mean distance between Santa's base and a child's home for the given test case).
No points are awarded for incompletely solved test cases (when not all the children receive presents). Any other violation of transport rules results in Wrong Answer.
Example
Input:
1
3 0 0 3
1 0 1
1 0 2
1 0 3
Output:
-1 -2 1 2 -3 3 0
Score:
2/(1+1+1+1)= 0.5
Good luck🤩!
Every year Santa Claus faces a more and more difficult task. The number of children in the world is increasing rapidly, while Santa's old patched up sack can only accommodate a few presents at a time. And every child wants their own very special present... This means that, ever so often, once his sack is partially or completely empty, Santa has to fly back to his base in Lapland to replenish his supplies. So irksome has this become that Santa has decided to resort to modern operational research to aid him in his sack-packing and route planning. Please write a program which will guide Santa through his daily chores.
Input
The input starts with a line containing a single integer t<=100, the number of test cases. t test cases follow.
The first line of every test case consists of four integers n x y S, denoting the number of good children who will receive a present from Santa, the x and y coordinates of Santa's home base, and the amount of space in the sack, respectively (1<=n<=10000, -10000<=x,y<=10000, 1<=S<=100000). n lines follow, each consisting of three integers xi yi si - the x and y coordinates of the i-th child's home, and the amount of space taken up by this child's present when in Santa's sack, respectively (-10000<=xi,yi<=10000, 1<=si<=S).
Output
For each test case output a sequence of space separated integers, corresponding to successive actions that should be taken by Santa:
-i (1<=i<=n) signifies that Santa should travel to his base and pack the present for the i-th child into his sack (he needs to have sufficient room in his sack to do this).
i (1<=i<=n) signifies that Santa should travel to the i-th child's home and leave a present for him/her.
0 signifies that Santa should travel back to his base and end his Christmas activity (and that you want to proceed to the next test case).
Assume that Santa starts in his base and always travels between points by the shortest possible route (along straight lines). All distances are measured using the Euclidean metric.
Score
The score awarded to your program is the total of all scores obtained for its individual test cases. The score for a test case is calculated as I/P, where P stands for the distance covered by Santa in your solution, while I is a test case specific constant (I= n*d+D*(s1+...+sn)/S; d is the mean distance between two homes, while D is the mean distance between Santa's base and a child's home for the given test case).
No points are awarded for incompletely solved test cases (when not all the children receive presents). Any other violation of transport rules results in Wrong Answer.
Example
Input:
1
3 0 0 3
1 0 1
1 0 2
1 0 3
Output:
-1 -2 1 2 -3 3 0
Score:
2/(1+1+1+1)= 0.5
Good luck🤩!
Hi friends! Recently we've had posts about React Hooks. Todays let's read about How Not to Use React Hooks 🙅🏻♀️🙅🏻 You'll find out about the React hooks usage mistakes, and how to fix them.
👉🏻The Import On Interaction Pattern ~ Lazy-load non-critical resources (e.g components, embeds) when a user interacts with UI that needs it.
#epamFrontend #epamNews
#epamFrontend #epamNews
Ми цінуємо ваші поради щодо ведення телеграм каналу та вашу активність під нашими постами❤️
Тому вже в середу проведемо опитування щодо якості JStify каналу та контенту!
Просимо вас долучатись до голосувань! Разом ми зможемо зробити наш телеграм канал кращим😉
Тому вже в середу проведемо опитування щодо якості JStify каналу та контенту!
Просимо вас долучатись до голосувань! Разом ми зможемо зробити наш телеграм канал кращим😉
Time for our Santa Claus Quiz is finished and we have winner🙀
Hooray!!!🎉🎊
Natali Kukulevska is our winner today! You’ve worked so hard for this! Congratulations!
We will contact you shortly🎁
Hooray!!!🎉🎊
Natali Kukulevska is our winner today! You’ve worked so hard for this! Congratulations!
We will contact you shortly🎁
In celebration of JavaScript’s 25th birthday, you might be wondering what’s next for one of the most popular languages in the world?
Join JavaScript experts on the 17th of December for a roundtable discussion on the challenges, opportunities and potential for innovation within the JavaScript community.
You’ll also have an opportunity to ask your own questions during a live Q&A at the end of the event☺️
#epamNews #epamJS #epamJavaScript
Join JavaScript experts on the 17th of December for a roundtable discussion on the challenges, opportunities and potential for innovation within the JavaScript community.
You’ll also have an opportunity to ask your own questions during a live Q&A at the end of the event☺️
#epamNews #epamJS #epamJavaScript
Друзі, як і обіцяли сьогодні проводимо невеличке опитування. Поділіться будь ласка своєю думкою про наш телеграм канал.
Чи користуєтесь ви тегами для пошуку новин?
Чи користуєтесь ви тегами для пошуку новин?
Anonymous Poll
16%
Так
25%
Зрідка
59%
Ні
Чи порекомендували б ви наш телеграм канал своїм друзям, які вивчають чи працюють з JS?
Anonymous Poll
85%
Так
15%
Ні
Які новини ви б хотіли бачити частіше?
Anonymous Poll
90%
JS and frameworks
1%
CSS and HTML
9%
Про нашу ком’юніті ❤️