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 listSep 22, 2021 16:33Yuriy LyfenkoYuriy LyfenkoScore: 5,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 16:335,425469,846,650157,333,623027,443,200
2Sep 22, 2021 16:335,477475,821,660158,826,740027,439,104
3Sep 22, 2021 16:335,485521,753,775159,078,658027,443,200
4Sep 22, 2021 16:335,627367,794,614142,795,00020,399,00033,767,424
5Sep 22, 2021 16:335,640346,832,205131,046,00032,515,00033,751,040
6Sep 22, 2021 16:335,649374,663,172135,326,00028,489,00034,058,240
7Sep 22, 2021 16:335,659379,749,772139,022,00025,086,00033,775,616
8Sep 22, 2021 16:335,659363,059,309136,593,00027,522,00033,759,232
9Sep 22, 2021 16:335,661356,257,974141,020,00023,152,00033,607,680
10Sep 22, 2021 16:335,674374,619,835131,831,00032,710,00034,000,896
11Sep 22, 2021 16:335,680375,404,408140,446,00024,287,00033,652,736
12Sep 22, 2021 16:335,692378,896,649128,597,00036,467,00033,828,864