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:46Yuriy LyfenkoYuriy LyfenkoScore: 5,631Success
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:465,251442,726,251152,290,184027,439,104
2Oct 11, 2021 04:465,291475,631,946153,426,802027,443,200
3Oct 11, 2021 04:465,317480,659,512154,186,232027,439,104
4Oct 11, 2021 04:465,609364,083,496129,341,00033,315,00033,853,440
5Oct 11, 2021 04:465,625362,162,474139,815,00023,302,00034,021,376
6Oct 11, 2021 04:465,628364,901,237132,792,00030,410,00033,746,944
7Oct 11, 2021 04:465,631378,722,302135,569,00027,730,00034,025,472
8Oct 11, 2021 04:465,636354,508,068131,357,00032,087,00034,267,136
9Oct 11, 2021 04:465,646381,920,616129,419,00034,315,00033,628,160
10Oct 11, 2021 04:465,662347,566,551136,999,00027,190,00034,009,088
11Oct 11, 2021 04:465,667386,237,078132,070,00032,261,00035,065,856
12Oct 11, 2021 04:465,672382,285,772140,831,00023,651,00034,127,872