瀏覽代碼

Minor modification

master
Noëlle Anthony 6 年之前
父節點
當前提交
7266457074
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. 1
    3
      01b.py

+ 1
- 3
01b.py 查看文件

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

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

Loading…
取消
儲存