A
Size: a a a
A
A
👮
👮
👮
👮
👮
AE
БГ
БГ
a = "abbbcaac"
b = "aabbccac"
def check_thrice_repeated(string):
string = string.encode()
compare = int.from_bytes(string[:-3], 'big'), int.from_bytes(string[1:-2], 'big'), int.from_bytes(string[2:], 'big')
compare = compare[0]&compare[1]&compare[2]
print(compare)
print(bool(compare))
check_thrice_repeated(a)
check_thrice_repeated(b)
БГ
a = "abbbcaac"
b = "aabbccac"
def check_thrice_repeated(string):
string = string.encode()
compare = int.from_bytes(string[:-3], 'big'), int.from_bytes(string[1:-2], 'big'), int.from_bytes(string[2:], 'big')
compare = compare[0]&compare[1]&compare[2]
print(compare)
print(bool(compare))
check_thrice_repeated(a)
check_thrice_repeated(b)
ЮЧ
a = "abbbcaac"
b = "aabbccac"
def check_thrice_repeated(string):
string = string.encode()
compare = int.from_bytes(string[:-3], 'big'), int.from_bytes(string[1:-2], 'big'), int.from_bytes(string[2:], 'big')
compare = compare[0]&compare[1]&compare[2]
print(compare)
print(bool(compare))
check_thrice_repeated(a)
check_thrice_repeated(b)
SI
БГ
БГ
ЮЧ
ЮЧ
413967343713
True
413933920355
True
27127564847833188
True
ЮЧ
БГ
БГ