46722023-03-30 20:27:05herczegkatVetélkedő (75 pont)python3Time limit exceeded 75/75503ms16432 KiB
Vdb=int(input())
versenyzok={}
for i in range(Vdb):
    kod=input()
    rend=sorted(kod)
    fuz=''
    for j in range(0,len(rend)):
        fuz+=rend[j]
    #print(fuz)    
    if fuz in versenyzok:
        versenyzok[fuz] += 1
    else:
        versenyzok[fuz] = 1
    #UEZ 1 sorban versenyzok[fuz] = versenyzok.get(fuz, 0) + 1    
for kod,db in versenyzok.items():
    if db%2==1 :
        print (kod)
        break
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/017ms10972 KiB
2Time limit exceeded0/0503ms14564 KiB
3Accepted5/517ms11616 KiB
4Accepted5/517ms11872 KiB
5Accepted5/517ms11796 KiB
6Accepted5/517ms12016 KiB
7Accepted5/521ms12336 KiB
8Accepted5/523ms12380 KiB
9Accepted5/524ms12836 KiB
10Accepted5/5252ms14176 KiB
11Accepted5/5296ms14592 KiB
12Accepted5/5345ms15944 KiB
13Accepted5/5388ms16220 KiB
14Accepted5/5432ms15972 KiB
15Accepted5/5492ms16432 KiB
16Accepted5/5479ms16412 KiB
17Accepted5/5435ms16136 KiB