mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
28 lines
411 B
Python
28 lines
411 B
Python
def problem_p03264(input_data):
|
|
n = int(eval(input_data))
|
|
|
|
m = list(range(1, n + 1))
|
|
|
|
even = []
|
|
|
|
odd = []
|
|
|
|
for x in range(0, len(m)):
|
|
|
|
if len(m) == 0:
|
|
|
|
return "0"
|
|
|
|
else:
|
|
|
|
if m[x] % 2 == 0:
|
|
|
|
even.append(m[x])
|
|
|
|
else:
|
|
|
|
odd.append(m[x])
|
|
|
|
output = [[a, b] for a in even for b in odd]
|
|
|
|
return len(output)
|