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 listApr 29, 2026 19:17Victor MerckléVictor MerckléScore: 25,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 19:1825,090742,996,954719,625,0007,995,0002,342,912stderr
2Apr 29, 2026 19:1825,091747,328,322716,654,00010,994,0002,433,024stderr
3Apr 29, 2026 19:1825,124744,924,981718,604,00010,008,0002,408,448stderr
4Apr 29, 2026 19:1825,129748,807,469720,769,0007,997,0002,416,640stderr
5Apr 29, 2026 19:1825,137746,041,954722,000,0007,000,0002,478,080stderr
6Apr 29, 2026 19:1825,147750,654,014719,287,0009,990,0002,355,200stderr
7Apr 29, 2026 19:1825,159749,355,366720,616,0008,995,0002,371,584stderr
8Apr 29, 2026 19:1825,172753,716,799722,015,0008,000,0002,375,680stderr
9Apr 29, 2026 19:1825,179751,427,953721,204,0008,990,0002,392,064stderr