Code Submission Evaluation System Login

HIIT Open 2018

Start:2018-05-26 11:00:00
End:2018-05-26 16:00:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - HIIT Open 2018 - Results
History
2018-05-26 13:27:34
2018-05-26 13:26:13
2018-05-26 13:24:01
2018-05-26 13:08:02
2018-05-26 11:44:20
2018-05-26 11:26:56
2018-05-26 11:21:45
2018-05-26 11:16:26
2018-05-26 11:07:31
2018-05-26 11:06:22
Task:Alien Invasion
Sender:DROP TABLE
Submission time:2018-05-26 11:06:22
Language:Python3
Status:READY
Result:WRONG ANSWER

Test results

testverdicttime (s)
#1WRONG ANSWER0.03 / 1.00details
#2ACCEPTED0.06 / 1.00details
#3ACCEPTED0.04 / 1.00details
#4ACCEPTED0.04 / 1.00details
#5ACCEPTED0.04 / 1.00details
#6ACCEPTED0.04 / 1.00details
#7ACCEPTED0.04 / 1.00details
#8ACCEPTED0.04 / 1.00details
#9ACCEPTED0.04 / 1.00details
#10ACCEPTED0.03 / 1.00details
#11ACCEPTED0.05 / 1.00details
#12ACCEPTED0.04 / 1.00details
#13ACCEPTED0.04 / 1.00details
#14ACCEPTED0.03 / 1.00details
#15ACCEPTED0.04 / 1.00details
#16ACCEPTED0.06 / 1.00details
#17ACCEPTED0.05 / 1.00details
#18ACCEPTED0.04 / 1.00details
#19ACCEPTED0.04 / 1.00details
#20TIME LIMIT EXCEEDED-- / 1.00details
#21TIME LIMIT EXCEEDED-- / 1.00details
#22TIME LIMIT EXCEEDED-- / 1.00details

Code

def main():
	n = int(input())
	divisors = 2		#n and 1
	even = True
	for i in range(n//2,1,-1):
		if n % i == 0:
			#print(n, i)
			even = not even
	if even:
		print("even")
	else:
		print("odd")

if __name__ == "__main__":
	main()

Test details

Test 1

Verdict: WRONG ANSWER

input
1

view   save

correct output
odd

view   save

user output
even

view   save

Test 2

Verdict: ACCEPTED

input
2

view   save

correct output
even

view   save

user output
even

view   save

Test 3

Verdict: ACCEPTED

input
3

view   save

correct output
even

view   save

user output
even

view   save

Test 4

Verdict: ACCEPTED

input
4

view   save

correct output
odd

view   save

user output
odd

view   save

Test 5

Verdict: ACCEPTED

input
5

view   save

correct output
even

view   save

user output
even

view   save

Test 6

Verdict: ACCEPTED

input
6

view   save

correct output
even

view   save

user output
even

view   save

Test 7

Verdict: ACCEPTED

input
7

view   save

correct output
even

view   save

user output
even

view   save

Test 8

Verdict: ACCEPTED

input
8

view   save

correct output
even

view   save

user output
even

view   save

Test 9

Verdict: ACCEPTED

input
9

view   save

correct output
odd

view   save

user output
odd

view   save

Test 10

Verdict: ACCEPTED

input
10

view   save

correct output
even

view   save

user output
even

view   save

Test 11

Verdict: ACCEPTED

input
11

view   save

correct output
even

view   save

user output
even

view   save

Test 12

Verdict: ACCEPTED

input
12

view   save

correct output
even

view   save

user output
even

view   save

Test 13

Verdict: ACCEPTED

input
13

view   save

correct output
even

view   save

user output
even

view   save

Test 14

Verdict: ACCEPTED

input
14

view   save

correct output
even

view   save

user output
even

view   save

Test 15

Verdict: ACCEPTED

input
15

view   save

correct output
even

view   save

user output
even

view   save

Test 16

Verdict: ACCEPTED

input
16

view   save

correct output
odd

view   save

user output
odd

view   save

Test 17

Verdict: ACCEPTED

input
17

view   save

correct output
even

view   save

user output
even

view   save

Test 18

Verdict: ACCEPTED

input
18

view   save

correct output
even

view   save

user output
even

view   save

Test 19

Verdict: ACCEPTED

input
19

view   save

correct output
even

view   save

user output
even

view   save

Test 20

Verdict: TIME LIMIT EXCEEDED

input
999999874000003969

view   save

correct output
odd

view   save

user output
(empty)

Test 21

Verdict: TIME LIMIT EXCEEDED

input
999999999999999989

view   save

correct output
even

view   save

user output
(empty)

Test 22

Verdict: TIME LIMIT EXCEEDED

input
1000000000000000000

view   save

correct output
odd

view   save

user output
(empty)