DCP-354: Factorially Even or Odd Back to All Problems

Beginner Beginners Problems > Ad-hoc


Given an integer number N. You have to tell whether it is factorially even or odd. We will call a number factorially even if the number of trailing zeros in the factorial of N is a power of 2, otherwise we will call it as factorially odd. Input: ------ Input starts with an integer **T (1<=T<=100)**, denoting the number of test cases. Each case contains an integer **N (1 ≤ N ≤ 10000000000000000)** denoting the number N. Output: ------- For each case of input, output only a text "Even" or "Odd" without the quotations marks. Sample Input ------------ 5 8 10 4 9 1 Sample Output ------------- Even Even Odd Even Odd


Problem Setter:

Md. Khairullah Gaurab

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C 1.00
C++ 1.00
C++14 1.00
C# 2.00
Go 2.00
Java 2.00
JavaScript 2.00
Objective-C 2.00
Perl 2.00
PHP 2.00
Python 2.00
Python3 2.00
Ruby 2.00
VB.Net 2.00

Problem Stats

55/160

Solve/Submission

Ranking

# User Language Timing
01 Gang_Of_Three_01 Cpp 0.00s
02 FariD Cpp14 0.00s
03 kzvd4729 Cpp 0.00s
04 nuhu_iu Cpp 0.00s
05 Pure_Protea Cpp 0.00s
06 AlaminJust Cpp 0.00s
07 badhansen123 Cpp14 0.00s
08 zitul_mahmud Cpp 0.00s
09 Sohan_Just Cpp 0.00s
10 subhashis_cse Cpp 0.00s
11 nurshuvo51 Cpp 0.00s
12 Rajan_sust Cpp14 0.00s
13 MRITuhin Cpp 0.00s
14 pulak_ict_mbstu Cpp 0.00s
15 SakibAlamin Cpp 0.00s
16 KIRIN_36 Cpp 0.00s
17 Sarwar05 Cpp 0.00s
18 BishalG Cpp14 0.00s
19 Nazmul_WUB Cpp 0.00s
20 mhiceiuk Cpp 0.00s
21 Key_logger Cpp 0.00s
22 Mr_KAJOL Cpp 0.00s
23 mhiceiu Cpp 0.00s
24 jamil993 Cpp14 0.00s
25 ssavi Cpp 0.00s
26 asifthegreat Cpp 0.00s
27 Momin_just Cpp 0.00s
28 khatribiru Cpp 0.00s
29 saiful130104 Cpp 0.00s
30 giash_uddin Cpp 0.00s
31 susmoys Cpp 0.00s
32 Not_Found0001 Cpp 0.00s
33 kissu_pari_na Cpp 0.00s
34 DynamicOvi Cpp 0.00s
35 Sakhawat_CoU Cpp 0.00s
36 leenaiitju Cpp 0.00s
37 feodorv C 0.00s
38 rashedul_riad Cpp 0.00s
39 JubayerSohel Cpp 0.00s
40 milon019 Cpp 0.00s
41 neel71 C 0.00s
42 Naim1611052 Cpp 0.00s
43 rayhan50001 Cpp 0.00s
44 joymollick Cpp 0.01s
45 hasanuzzaman333 CSharp 0.01s
46 Bruteforcekid Cpp 0.01s
47 Taran Cpp 0.01s
48 tariqiitju Cpp 0.01s
49 arman_ferdous Cpp 0.01s
50 emrul Cpp 0.01s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support