Good Numbers
Practice
3.9 (23 votes)
Very Easy
Mathematics
Basic math
Simple Math
Mathematics
Problem
93% Success 3023 Attempts 10 Points 2s Time Limit 256MB Memory 1024 KB Max Code
You are given a number $$N$$. Determine the number of positive even integers that are smaller than or equal to it and are not a multiple of 4.
Input Format
The first line contains a single integer $$T$$ ($$1 \le T \le 100$$), denoting the number of test cases.
Each of the next $$T$$ lines contains a single integer, denoting the value of $$N$$ ($$1 \le N \le 10^5$$).
Output Format
Print $$T$$ lines, where the $i$-th line contains the answer to the $$i$$-th test case.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
2 votes
Tags:
Basic ProgrammingBasic MathMathImplementationBasics of ImplementationBasics of Input/Output
Points:10
17 votes
Tags:
MathematicsVery-EasyMathematicsMathamatics
3.King Duo
Points:10
1 votes
Tags:
Basic MathAlgorithmsMath
Editorial
Login to unlock the editorial