ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1496. Spammer

Wrong answer test 8
Posted by Леонид 2 Dec 2017 09:34
n = int(input())
sp = []
c = 0
for i in range(n):
    b = input()
    sp.append(b)
sp.sort()
for i in sp:
    if sp.count(i) >= 2 and c == 0:
        print(i)
        c = 1
    if sp.count(i) < 2:
        c = 0
Re: Wrong answer test 8
Posted by MaxxxCoder 15 Jun 2023 22:13
why you use variable 'c'