
Write a polyglot that compiles / runs in as many of the following languages as possible:
Code
1[bash, zig, C, elixir, erlang, fish, golfscript, haskell, J, java, julia, lua, odin, perl, python 0, scheme, rust, typescript, whitespace](for exact versions / compilers / docker images, a sample runner is attached below). In each language, the program should:
The first line contains ().
The second line contains ().
The third line contains ().
Output a single integer equal to .
Author: oh_word
254 characters (haskell)
pickelang is an esolang that uses the stack-based pickle virtual machine for evaluation; turing
completeness is achieved by recursive pickle functionality using the BINPERSID opcode, add, and getitem functions
(a sample runner is attached below).
Submit the shortest pickelang payload that passes 5 test cases specified below (100s timeout, 100MB memory limit).
struct.pack and struct.unpack are given for convenience.
The input is a single string in the format [A, B, C] ()
and can be retrieved using the input function.
Output a single integer equal to . This can be done by stopping the outermost unpickler evaluation with on the top of the stack.
Author: quasar098
0 bytes
Write the shortest Brainfuck program that computes powmod as specified (a sample runner
is attached below).
Note: You are in charge of converting strings to ints and ints to strings. Don’t be lazy now.
The first line contains ().
The second line contains ().
The third line contains ().
Output a single integer equal to .
Author: oh_word
0 bytes