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 22, 2024 08:11Daan de GraafDaan de GraafScore: 6,326Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2024 08:116,291383,240,692152,189,00030,236,00033,824,768
2Sep 22, 2024 08:116,301397,178,986157,956,00024,777,00033,763,328
3Sep 22, 2024 08:116,320384,923,513153,919,00029,366,00033,542,144
4Sep 22, 2024 08:116,324384,495,868153,161,00030,229,00033,792,000
5Sep 22, 2024 08:116,326390,759,845156,652,00026,795,00033,538,048
6Sep 22, 2024 08:116,330375,775,988149,028,00034,543,00033,640,448
7Sep 22, 2024 08:116,336393,418,291154,311,00029,441,00034,193,408
8Sep 22, 2024 08:116,342379,380,888152,764,00031,155,00034,054,144
9Sep 22, 2024 08:116,353392,783,276157,175,00027,063,00034,312,192