Noëlle Anthony пре 7 година
родитељ
комит
7266457074
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1
    3
      01b.py

+ 1
- 3
01b.py Прегледај датотеку

elif item[0] == "-": elif item[0] == "-":
freq -= int(item[1:]) freq -= int(item[1:])
if freq in freqlist: if freq in freqlist:
return freq
return "Found after {} cycles: {}".format(cycles,freq)
freqlist.append(freq) freqlist.append(freq)
if cycles == 1000000:
return "I haven't found a duplicate after a million cycles."


if __name__ == "__main__": if __name__ == "__main__":
args = input("Paste the modulations here: ") args = input("Paste the modulations here: ")

Loading…
Откажи
Сачувај