Each table row shows performance measurements for this program with a particular command-line input value N.
N | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
---|
Read the ↓ make, command line, and program output logs to see how this program was run.
Read benchmark to see what this program should do.
# The Computer Language Benchmarks Game # http://benchmarksgame.alioth.debian.org/ # # contributed by Jacob Lee, Steven Bethard, et al # 2to3 # fixed by Daniele Varrazzo from __future__ import print_function import sys, string def show(seq, table=string.maketrans(b'ACBDGHK\nMNSRUTWVYacbdghkmnsrutwvy', b'TGVHCDM\nKNSYAAWBRTGVHCDMKNSYAAWBR')): seq = (''.join(seq)).translate(table)[::-1] for i in range(0, len(seq), 60): print(seq[i:i+60]) def main(): seq = [] add_line = seq.append for line in sys.stdin: if line[0] in '>;': show(seq) print(line, end='') del seq[:] else: add_line(line[:-1]) show(seq) main()
Wed, 28 Sep 2022 09:32:03 GMT COMMAND LINE: /usr/bin/pyston revcomp.pyston-3.pyston 0 < revcomp-input1000.txt PROGRAM FAILED PROGRAM OUTPUT: Traceback (most recent call last): File "revcomp.pyston-3.pyston", line 12, in <module> table=string.maketrans(b'ACBDGHK\nMNSRUTWVYacbdghkmnsrutwvy', AttributeError: module 'string' has no attribute 'maketrans'