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 28, 2021 04:58Yuriy LyfenkoYuriy LyfenkoScore: 5,719Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 04:585,444499,263,219157,887,220027,447,296
2Sep 28, 2021 04:585,511491,409,840159,828,365027,447,296
3Sep 28, 2021 04:585,543452,467,569160,759,665027,443,200
4Sep 28, 2021 04:585,710375,095,842136,491,00029,104,00033,763,328
5Sep 28, 2021 04:585,713358,362,885129,293,00036,393,00033,792,000
6Sep 28, 2021 04:585,715355,022,417141,765,00023,974,00034,037,760
7Sep 28, 2021 04:585,719373,597,116137,537,00028,316,00034,009,088
8Sep 28, 2021 04:585,722375,765,121132,555,00033,384,00033,746,944
9Sep 28, 2021 04:585,725348,774,606128,807,00037,211,00033,615,872
10Sep 28, 2021 04:585,731377,307,115140,553,00025,648,00033,345,536
11Sep 28, 2021 04:585,764375,510,540142,977,00024,180,00034,701,312
12Sep 28, 2021 04:585,764375,220,811136,768,00030,392,00034,545,664