benchmarks.wiki / Public workspace

CRUXEval / sample_779 / 'python ruby c javascript'

Problem

Answer published by the source. Consult the official source to check your work against its answer.

code

Code

def f(text):
    values = text.split()
    return '${first}y, ${second}x, ${third}r, ${fourth}p' % dict({
        'first': values[0],
        'second': values[1],
        'third': values[2],
        'fourth': values[3]
    })

input

'python ruby c javascript'

Discussion

Discussion

No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Source and history

Official source

initial import