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 listMay 3, 2026 21:10TudyMTudyMScore: 4,247Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 21:114,244141,525,159122,060,0001,042,0002,371,584
2May 3, 2026 21:114,244139,258,524122,071,0001,027,0002,379,776
3May 3, 2026 21:114,245142,153,432122,061,0001,053,0002,371,584
4May 3, 2026 21:114,247141,787,938122,115,0001,057,0002,371,584
5May 3, 2026 21:114,247140,451,979122,115,0001,050,0002,363,392
6May 3, 2026 21:114,247141,268,155122,117,0001,046,0002,359,296
7May 3, 2026 21:114,248142,725,700122,098,0001,104,0002,310,144
8May 3, 2026 21:114,250138,571,944122,167,0001,086,0002,359,296
9May 3, 2026 21:114,254140,420,150122,325,0001,066,0002,371,584