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 14:29:43
2018-05-26 14:24:51
2018-05-26 14:24:25
2018-05-26 14:19:25
2018-05-26 14:17:31
2018-05-26 14:12:18
2018-05-26 11:43:13
2018-05-26 11:16:56
2018-05-26 11:10:19
Task:Coins
Sender:El Numero Uno
Submission time:2018-05-26 14:19:25
Language:Python3
Status:READY
Result:TIME LIMIT EXCEEDED

Test results

testverdicttime (s)
#1TIME LIMIT EXCEEDED-- / 1.00details
#2TIME LIMIT EXCEEDED-- / 1.00details
#3TIME LIMIT EXCEEDED-- / 1.00details
#4TIME LIMIT EXCEEDED-- / 1.00details
#5TIME LIMIT EXCEEDED-- / 1.00details

Code


s1 = [0, float('inf'), 0]
s2 = [0, float('inf'), 0]
# suurus, min, max

for i in range(int(input())):
	c, s = map(int, input().split())
	if s == 1:
		s1[0] += 1
		if c < s1[1]: s1[1] = c
		if c > s1[2]: s1[2] = c
	else:
		s2[0] += 1
		if c < s2[1]: s2[1] = c
		if c > s2[2]: s2[2] = c

	if s1[2] < s2[1] and s1[0] <= s2[0]:
		print("<")
	elif s2[2] < s1[1] and s1[0] <= s1[0]:
		print(">")
	else: print("?")

Test details

Test 1

Verdict: TIME LIMIT EXCEEDED

input
200000
175878 1
146174 1
4939 2
181388 1
...
view   save

correct output
>
>
>
>
>
...
view   save

user output
(empty)

Test 2

Verdict: TIME LIMIT EXCEEDED

input
200000
1 2
2 1
3 2
4 1
...
view   save

correct output
<
>
<
>
<
...
view   save

user output
(empty)

Test 3

Verdict: TIME LIMIT EXCEEDED

input
200000
1 1
2 1
3 1
4 1
...
view   save

correct output
>
>
>
>
>
...
view   save

user output
(empty)

Test 4

Verdict: TIME LIMIT EXCEEDED

input
200000
1 1
2 1
3 1
4 1
...
view   save

correct output
>
>
>
>
>
...
view   save

user output
(empty)

Test 5

Verdict: TIME LIMIT EXCEEDED

input
200000
188909 2
58944 1
26824 1
143263 2
...
view   save

correct output
<
<
?
<
<
...
view   save

user output
(empty)