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 06:09Yuriy LyfenkoYuriy LyfenkoScore: 5,391Success
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 06:095,118447,209,949148,420,740027,430,912
2Oct 11, 2021 06:095,158426,046,568149,586,668027,443,200
3Oct 11, 2021 06:095,172453,839,004149,985,289027,435,008
4Oct 11, 2021 06:095,382355,584,518134,696,00021,380,00033,796,096
5Oct 11, 2021 06:095,382368,182,358122,151,00033,931,00034,287,616
6Oct 11, 2021 06:095,384369,194,485126,912,00029,210,00033,763,328
7Oct 11, 2021 06:095,391352,903,841128,761,00027,591,00033,759,232
8Oct 11, 2021 06:095,395361,886,528129,694,00026,762,00033,783,808
9Oct 11, 2021 06:095,401366,702,363127,976,00028,666,00034,025,472
10Oct 11, 2021 06:095,412361,454,947124,373,00032,573,00034,275,328
11Oct 11, 2021 06:095,425347,808,037120,866,00036,451,00034,017,280
12Oct 11, 2021 06:095,425365,857,482131,284,00026,048,00034,578,432