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 listMay 19, 2026 13:49M-RochatM-RochatScore: 10,077Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 13:5110,055301,399,019258,681,00032,918,0002,138,112
2May 19, 2026 13:5110,064301,754,200258,719,00033,152,0002,138,112
3May 19, 2026 13:5110,075301,246,908258,836,00033,354,0002,138,112
4May 19, 2026 13:5110,076302,716,990257,156,00035,052,0002,138,112
5May 19, 2026 13:5110,077300,141,863258,438,00033,816,0002,138,112
6May 19, 2026 13:5110,079302,184,687258,677,00033,625,0002,138,112
7May 19, 2026 13:5110,089302,626,256258,604,00033,996,0002,138,112
8May 19, 2026 13:5110,106303,358,913257,918,00035,156,0002,138,112
9May 19, 2026 13:5110,121303,659,047259,022,00034,506,0002,138,112