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:51Yuriy LyfenkoYuriy LyfenkoScore: 5,586Success
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:515,444452,889,843157,866,907027,443,200
2Oct 11, 2021 03:515,449437,773,760158,028,042027,447,296
3Oct 11, 2021 03:515,469458,617,633158,605,895027,447,296
4Oct 11, 2021 03:515,551352,431,685129,371,00031,602,00034,025,472
5Oct 11, 2021 03:515,578364,213,250134,980,00026,790,00033,488,896
6Oct 11, 2021 03:515,584369,956,162135,131,00026,819,00034,107,392
7Oct 11, 2021 03:515,586375,971,871131,820,00030,187,00033,660,928
8Oct 11, 2021 03:515,588372,338,753143,571,00018,490,00033,751,040
9Oct 11, 2021 03:515,598364,072,582128,696,00033,659,00034,324,480
10Oct 11, 2021 03:515,603364,493,442129,007,00033,482,00033,796,096
11Oct 11, 2021 03:515,609357,545,986133,355,00029,297,00034,185,216
12Oct 11, 2021 03:515,632379,116,489134,577,00028,764,00034,013,184