[python] ____ and giggles
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- import time
- import os
- import sys
- def main():
- foundLimit = False
- foundEnd = False
- currentLine = 0
- lastLine = 0
- maxShares = 100
- extraLines = 5
- lastLines = 0
- previousLine = ''
- timer = 0
- highestDiff = 0
- while(True):
- time.sleep(1)
- #tick
- timer+=1
- finalLine = ''
- line = ''
- with open(os.path.join(sys.path[0], 'keyout.txt')) as f:
- for line in f:
- pass
- finalLine = line
- if ('diff=' in finalLine and 'Accepted' in finalLine):
- actualDiff = int(finalLine.split('=')[1].split()[0])
- if (actualDiff > highestDiff):
- highestDiff = actualDiff
- if (timer % 10 == 0 ):
- print(highestDiff)
- if __name__ == "__main__":
- main()
Editor
You can edit this paste and save as new:
File Description
- ____ and giggles
- Paste Code
- 05 May-2021
- 866 Bytes
You can Share it: