Browse Source

Minor modification

master
Noëlle Anthony 6 years ago
parent
commit
7266457074
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      01b.py

+ 1
- 3
01b.py View File

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…
Cancel
Save