Submission ID Problem Status Score Time Memory Code / Answer files User Submit time
#20376 #2. 視頻推薦 Video Recommendation System Error 0 0 ms 0 K Python 3 / 288 B root 2024-07-05 15:24:50
rating = ""
like = 0
dislike = 0
n = 0

n = int(input())

for i in range(n):
    rating = input()
    rating = rating.rstrip("\n\r")
    if rating == "dislike":
        dislike = dislike + 1
    elif rating == "like":
        like = like + 1
        
print (like - dislike)
Subtask #1
System Error
Test case #1
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #2
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #3
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #4
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #5
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #6
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #7
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #8
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #9
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")
Test case #10
System Error

Error message

IllegalOperationError: Connection closed (Error: Connection closed: 320 (CONNECTION-FORCED) with message "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")