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 03:49Yuriy LyfenkoYuriy LyfenkoScore: 6,185Success
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 03:495,974481,431,810173,251,910027,447,296
2Oct 11, 2021 03:496,046477,000,060175,332,738027,443,200
3Oct 11, 2021 03:496,071477,426,896176,046,243027,443,200
4Oct 11, 2021 03:496,179389,512,898152,570,00026,623,00034,025,472
5Oct 11, 2021 03:496,184376,747,168145,829,00033,501,00033,755,136
6Oct 11, 2021 03:496,184375,841,336145,221,00034,112,00034,123,776
7Oct 11, 2021 03:496,185392,742,370148,640,00030,718,00033,501,184
8Oct 11, 2021 03:496,185366,165,426150,996,00028,375,00034,000,896
9Oct 11, 2021 03:496,190376,493,792151,965,00027,537,00033,484,800
10Oct 11, 2021 03:496,192389,318,604156,466,00023,102,00034,529,280
11Oct 11, 2021 03:496,198394,462,855153,193,00026,553,00034,054,144
12Oct 11, 2021 03:496,200390,984,465154,122,00025,687,00033,910,784