Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listFeb 5, 2025 11:50KeefeKeefeScore: 7,331Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2025 11:507,324241,914,429210,405,0002,003,0002,273,280
2Feb 5, 2025 11:507,325235,062,149211,418,0001,001,0002,371,584
3Feb 5, 2025 11:507,326236,153,471211,448,0001,002,0002,277,376
4Feb 5, 2025 11:507,327238,284,029210,496,0001,995,0002,273,280
5Feb 5, 2025 11:507,331239,131,728210,602,0001,996,0002,273,280
6Feb 5, 2025 11:507,337242,129,516210,778,0001,997,0002,277,376
7Feb 5, 2025 11:507,341238,903,063210,879,0001,998,0002,277,376
8Feb 5, 2025 11:507,353241,174,364211,248,0002,002,0002,506,752
9Feb 5, 2025 11:507,365244,853,168212,571,0001,002,0002,269,184