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 13, 2024 08:33Daan de GraafDaan de GraafScore: 7,291Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 13, 2024 08:337,281402,447,298180,281,00030,876,00033,779,712
2Sep 13, 2024 08:337,287401,251,539184,919,00026,417,00033,779,712
3Sep 13, 2024 08:337,289404,305,957183,202,00028,185,00033,947,648
4Sep 13, 2024 08:337,289416,841,922176,161,00035,232,00033,943,552
5Sep 13, 2024 08:337,291424,777,217185,020,00026,431,00034,009,088
6Sep 13, 2024 08:337,299414,878,384184,968,00026,717,00033,972,224
7Sep 13, 2024 08:337,302427,339,173184,148,00027,622,00034,238,464
8Sep 13, 2024 08:337,316420,280,982181,987,00030,163,00034,238,464
9Sep 13, 2024 08:337,320418,248,749189,269,00023,005,00034,721,792