Submission #824824


Source Code Expand

#!/bin/sh
read a b
n=0
if [ "${a::1}" = "-" -a  "${b::1}" != "-" ]
then
	echo Zero
elif [ "${a::1}" = "-" -a  "${b::1}" = "-" ]
then
	for i in `seq ${b/?/} ${a/?/}`
	do
		n=$(( n + 1 ))
	done
	[[ $(( n % 2 )) -eq 0 ]] && echo Positive
	[[ $(( n % 2 )) -eq 1 ]] && echo Negative
else
	echo Positive
fi

Submission Info

Submission Time
Task A - Range Product
User tomiscript
Language Bash (GNU bash v4.3.11)
Score 0
Code Size 318 Byte
Status TLE
Exec Time 2128 ms
Memory 208412 KB

Judge Result

Set Name Sample Subtask1 All
Score / Max Score 0 / 0 0 / 100 0 / 100
Status
AC × 3
AC × 6
RE × 1
AC × 8
TLE × 2
RE × 1
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt
Subtask1 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 2_00.txt, 2_01.txt, 2_02.txt, 2_03.txt
Case Name Status Exec Time Memory
0_00.txt AC 246 ms 1396 KB
0_01.txt AC 13 ms 536 KB
0_02.txt AC 5 ms 376 KB
1_00.txt AC 5 ms 376 KB
1_01.txt RE 8 ms 540 KB
1_02.txt AC 8 ms 540 KB
1_03.txt AC 5 ms 376 KB
2_00.txt AC 5 ms 376 KB
2_01.txt TLE 2124 ms 207260 KB
2_02.txt TLE 2128 ms 208412 KB
2_03.txt AC 17 ms 376 KB