Simple Programming
30 points Easy

Can you help me? I need to know how many lines there are where the number of 0's is a multiple of 3 or the numbers of 1s is a multiple of 2. Please! Here is the file: https://mega.nz/#!7aoVEKhK!BAohJ0tfnP7bISIkbADK3qe1yNEkzjHXLKoJoKmqLys

Flag
Rating 4.41
5
4
3
2
1

Discussion

I made use of a simple Python Program to complete this challenge...makes it really quick in a file with that much lines lol

-1

6**2 answer nice one

-1

6**2 answer nice one

-1

I used Python, I opened the file in read mode and iterated through all the lines while increasing the count by 1 when either no. of 0s is divisible by 3 or no. of 1s is even.

0

I used C++

-1

I used C++

-1

Try once from yourself

hint - if unable to solve you can use online compiler - python for this and chatgpt to write code

-1
Protected
-1

hey I don't know what to write in the flag

-1

if you got a number as an answer then you should directly write it in

-1
Protected
0

you are true

-2

It is not AND, it is OR. SO lines which have no 0's or 1's are checked for the other condition, and included or excluded based on the result

2

line number 537 and line number 6296 both have the same value("0000000000") which has 10 zeros and is not a multiple of 3 and do not have the conditions and should not be counted in the calculation

1