Skip to content

Instantly share code, notes, and snippets.

View moneyismoney's full-sized avatar
💭
Hard step forward

Olex moneyismoney

💭
Hard step forward
View GitHub Profile
# Enter your code here. Read input from STDIN. Print output to STDOUT
import sys
number = sys.stdin.readline()
number = int( number)
dict_tel = {}
# dict_tel = {name1: tel1, name2:tel2, ...}
for i in range(number):
@moneyismoney
moneyismoney / handshakes.py
Created February 1, 2020 16:32
number of handshakes
#!/bin/python3
import os
import sys
import time
import math
from itertools import combinations
def handshake(n):
#
#This script creates dictionary, where we have mobile operator and mobile code
import re
#country_code_ukraine = '+380'
string_may_be = '38066-44-89-555aaa'
def parse_phone_for_provider(string_may_be):