93482024-02-20 18:16:35FarkasZénóVáltakozó (75 pont)python3Wrong answer 10/7559ms15472 KiB
from sys import stdin
from collections import defaultdict

szo = stdin.readline().strip()
N = len(szo)
szamolo = defaultdict(int)
for betu in szo:
	szamolo[betu] += 1
if max(szamolo.values()) <= (N+1) // 2:
	print(szo)
else:
	print(-1)
SubtaskSumTestVerdictTimeMemory
base10/75
1Wrong answer0/021ms11908 KiB
2Wrong answer0/020ms12168 KiB
3Partially correct2/319ms12360 KiB
4Wrong answer0/320ms12408 KiB
5Partially correct2/319ms12336 KiB
6Wrong answer0/319ms12620 KiB
7Wrong answer0/324ms12976 KiB
8Wrong answer0/359ms13952 KiB
9Accepted3/359ms14300 KiB
10Accepted3/354ms14164 KiB
11Wrong answer0/319ms13540 KiB
12Wrong answer0/319ms13992 KiB
13Wrong answer0/319ms14220 KiB
14Wrong answer0/319ms14028 KiB
15Wrong answer0/356ms14840 KiB
16Wrong answer0/357ms14932 KiB
17Wrong answer0/357ms14924 KiB
18Wrong answer0/356ms14984 KiB
19Wrong answer0/357ms14848 KiB
20Wrong answer0/357ms15260 KiB
21Wrong answer0/357ms15472 KiB
22Wrong answer0/657ms15264 KiB
23Wrong answer0/656ms15204 KiB
24Wrong answer0/657ms15216 KiB