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:14Yuriy LyfenkoYuriy LyfenkoScore: 5,626Success
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:145,497443,471,454159,404,906027,488,256
2Oct 11, 2021 04:145,558491,195,813161,180,317027,439,104
3Oct 11, 2021 04:145,562508,980,375161,284,563027,439,104
4Oct 11, 2021 04:145,594352,608,408130,575,00031,654,00033,275,904
5Oct 11, 2021 04:145,604369,638,351133,242,00029,272,00033,595,392
6Oct 11, 2021 04:145,623368,311,053140,841,00022,238,00033,763,328
7Oct 11, 2021 04:145,626380,441,506132,123,00031,029,00033,792,000
8Oct 11, 2021 04:145,639361,776,721132,432,00031,101,00034,275,328
9Oct 11, 2021 04:145,640369,106,543135,287,00028,269,00033,988,608
10Oct 11, 2021 04:145,659373,035,606137,984,00026,133,00034,009,088
11Oct 11, 2021 04:145,660376,624,647138,005,00026,137,00034,279,424
12Oct 11, 2021 04:145,673356,672,532131,612,00032,903,00033,894,400