RUVIDEO
Поделитесь видео 🙏

Mutated minions (CHN15A) | CodeChef Practice(Beginner) | CodeChef | Complete Solutions | C++ code

📁 Обучение 👁️ 17 📅 03.12.2023

Mutated minions (CHN15A) | CodeChef Practice(Beginner) | CodeChef | Complete Solutions | C++ code

Problem link :
https://www.codechef.com/problems/CHN15A

All Problems link:
https://www.codechef.com/problems/school/

Telegram link
https://t.me/programmerszonea

Hi, thanks for watching our video about simpe maths
In this video we’ll walk you through:
- Problem statement
- solved the problem live
- Solution


ABOUT OUR CHANNEL

Our channel is all about Programming. We cover lots of cool stuff such as solution to problems, concept explanation and tricks to master CP
Check out our channel here:
https://www.youtube.com/channel/UCqtYay7YwH8JdZxDqpVEPvg
Don’t forget to subscribe!

CHECK OUT OUR OTHER Playlists

GeeksforGeeks playlist:
https://youtube.com/playlist?list=PLDaU_TBYXoirv-848r81oHLSArcBrjIe7

Complete C++ Course playlist:
https://youtube.com/playlist?list=PLDaU_TBYXoio9L1qRpTrtzK9JJAwFLMSj

CodeChef Playlist:
https://youtube.com/playlist?list=PLDaU_TBYXoip_JFIo0U-Nl2dNA_ZMsd2z

LeetCode problems
https://youtube.com/playlist?list=PLDaU_TBYXoirsirbg6feNCKk3oPRn6M7w

HackerRank playlist:
https://youtube.com/playlist?list=PLDaU_TBYXoirMjgzW59T_XMyT5yRZ7ht_

FIND US AT
https://www.waadanibhao.wordpress.com

GET IN TOUCH
Contact us on [email protected]


Gru has not been in the limelight for a long time and is, therefore, planning something particularly nefarious. Frustrated by his minions' incapability which has kept him away from the limelight, he has built a transmogrifier — a machine which mutates minions.

Each minion has an intrinsic characteristic value (similar to our DNA), which is an integer. The transmogrifier adds an integer K to each of the minions' characteristic value.

Gru knows that if the new characteristic value of a minion is divisible by 7, then it will have Wolverine-like mutations.

Given the initial characteristic integers of N minions, all of which are then transmogrified, find out how many of them become Wolverine-like.

Input Format:
The first line contains one integer, T, which is the number of test cases. Each test case is then described in two lines.

The first line contains two integers N and K, as described in the statement.

The next line contains N integers, which denote the initial characteristic values for the minions.

Output Format:
For each testcase, output one integer in a new line, which is the number of Wolverine-like minions after the transmogrification.

Constraints:
1 ≤ T ≤ 100
1 ≤ N ≤ 100
1 ≤ K ≤ 100
All initial characteristic values lie between 1 and 105, both inclusive.
Example
Input:
1
5 10
2 4 1 35 1

Output:
1
Explanation:
After transmogrification, the characteristic values become {12,14,11,45,11}, out of which only 14 is divisible by 7. So only the second minion becomes Wolverine-like.
Author: 2★arjunarul
Editorial: https://discuss.codechef.com/problems/CHN15A
Tags: Tags are hidden. Show temporarily
Update this setting in edit profile


Date Added: 26-10-2015
Time Limit: 1 secs
Source Limit: 50000 Bytes
Languages: CPP14, C, JAVA, PYTH 3.6, PYTH, PYP3, CS2, ADA, PYPY, TEXT, PAS fpc, NODEJS, RUBY, PHP, GO, HASK, TCL, PERL, SCALA, LUA, kotlin, BASH, JS, LISP sbcl, rust, PAS gpc, BF, CLOJ, D, CAML, FORT, ASM, swift, FS, WSPC, LISP clisp, SCM guile, PERL6, ERL, CLPS, ICK, NICE, PRLG, ICON, COB, SCM chicken, PIKE, SCM qobi, ST, NEM
Submit

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Mutated minions (CHN15A) | CodeChef Practice(Beginner) | CodeChef | Complete Solutions | C++ code», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.