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 listOct 11, 2021 04:41Yuriy LyfenkoYuriy LyfenkoScore: 5,625Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 04:415,341418,256,273154,896,545027,435,008
2Oct 11, 2021 04:415,343451,225,268154,961,342027,447,296
3Oct 11, 2021 04:415,420472,721,400157,186,218027,443,200
4Oct 11, 2021 04:415,599349,377,140137,385,00024,979,00034,041,856
5Oct 11, 2021 04:415,616351,862,073131,087,00031,778,00033,734,656
6Oct 11, 2021 04:415,620372,820,589138,633,00024,340,00034,025,472
7Oct 11, 2021 04:415,625361,738,084135,413,00027,698,00033,665,024
8Oct 11, 2021 04:415,633377,659,669130,090,00033,256,00033,865,728
9Oct 11, 2021 04:415,637348,715,483137,599,00025,864,00033,697,792
10Oct 11, 2021 04:415,640374,267,145129,077,00034,486,00034,091,008
11Oct 11, 2021 04:415,646374,626,316130,794,00032,948,00034,017,280
12Oct 11, 2021 04:415,647373,137,882137,686,00026,076,00033,767,424