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/153

Solve/Submission

Ranking

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

Your feedback is our precious!



Or call +88 02 9853138 for support