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 14:57Yuriy LyfenkoYuriy LyfenkoScore: 5,922Success
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 14:575,715462,439,631165,739,135027,455,488
2Sep 22, 2021 14:575,734437,514,237166,276,550027,451,392
3Sep 22, 2021 14:575,765495,747,400167,175,681027,451,392
4Sep 22, 2021 14:575,903356,157,956141,976,00029,200,00033,488,896
5Sep 22, 2021 14:575,914382,010,147139,781,00031,723,00033,681,408
6Sep 22, 2021 14:575,918376,778,974146,497,00025,113,00033,964,032
7Sep 22, 2021 14:575,922359,688,964137,391,00034,347,00034,238,464
8Sep 22, 2021 14:575,928380,449,207144,130,00027,796,00033,976,320
9Sep 22, 2021 14:575,947365,709,827146,174,00026,290,00033,718,272
10Sep 22, 2021 14:575,952386,463,281142,809,00029,794,00033,685,504
11Sep 22, 2021 14:575,958384,331,163150,255,00022,538,00034,824,192
12Sep 22, 2021 14:575,965380,919,998145,898,00027,095,00034,136,064