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 18, 2026 14:05Andrew EpsteinAndrew EpsteinScore: 150,312Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2026 14:07148,6684,320,452,5434,284,944,00026,442,0002,125,824stderr
2Sep 18, 2026 14:07149,7224,350,838,0784,299,112,00042,848,0002,125,824stderr
3Sep 18, 2026 14:07150,1264,362,499,5094,303,010,00050,663,0002,125,824stderr
4Sep 18, 2026 14:07150,2914,367,650,2134,305,509,00052,935,0002,125,824stderr
5Sep 18, 2026 14:07150,3124,368,239,5254,306,996,00052,065,0002,125,824stderr
6Sep 18, 2026 14:07150,3524,369,128,6074,309,147,00051,061,0002,125,824stderr
7Sep 18, 2026 14:07150,3564,369,223,4384,308,104,00052,231,0002,125,824stderr
8Sep 18, 2026 14:07150,3834,370,032,0734,309,836,00051,289,0002,125,824stderr
9Sep 18, 2026 14:07151,7284,408,956,2494,346,666,00053,466,0002,125,824stderr