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 listAug 24, 2024 13:01Andrey LikhachevAndrey LikhachevScore: 7,023Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2024 13:016,658403,805,654193,069,631027,402,240
2Aug 24, 2024 13:016,671400,292,411193,467,420027,525,120
3Aug 24, 2024 13:016,734410,982,650195,290,964027,525,120
4Aug 24, 2024 13:016,991399,853,986170,945,00031,803,00033,910,784
5Aug 24, 2024 13:017,018390,337,282174,894,00028,637,00033,980,416
6Aug 24, 2024 13:017,021401,672,626178,539,00025,058,00033,873,920
7Aug 24, 2024 13:017,023419,048,059177,046,00026,608,00033,775,616
8Aug 24, 2024 13:017,026421,131,077170,944,00032,797,00034,394,112
9Aug 24, 2024 13:017,039419,439,039180,865,00023,269,00034,054,144
10Aug 24, 2024 13:017,064424,868,293178,864,00025,997,00033,992,704
11Aug 24, 2024 13:017,078420,033,808174,919,00030,332,00033,808,384
12Aug 24, 2024 13:017,078422,011,265184,846,00020,419,00034,037,760