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 12, 2024 20:08Daan de GraafDaan de GraafScore: 7,918Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2024 20:087,888437,636,559199,650,00029,094,00033,746,944
2Sep 12, 2024 20:087,900417,487,976192,360,00036,732,00033,959,936
3Sep 12, 2024 20:087,912431,385,066201,921,00027,534,00033,996,800
4Sep 12, 2024 20:087,913436,010,993202,846,00026,636,00034,107,392
5Sep 12, 2024 20:087,918423,632,563196,953,00032,660,00034,000,896
6Sep 12, 2024 20:087,918439,647,037208,564,00021,067,00033,742,848
7Sep 12, 2024 20:087,919425,869,537208,678,00020,972,00034,254,848
8Sep 12, 2024 20:087,929438,446,312197,806,00032,130,00034,250,752
9Sep 12, 2024 20:087,963438,929,292200,796,00030,119,00033,714,176