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 19:35TudyMTudyMScore: 4,753Success
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 19:404,749154,615,538137,730,00002,371,584
2May 3, 2026 19:404,750155,035,623136,734,0001,024,0002,371,584
3May 3, 2026 19:404,751156,258,394136,708,0001,074,0002,375,680
4May 3, 2026 19:404,752154,184,549136,792,0001,016,0002,375,680
5May 3, 2026 19:404,753155,029,682136,790,0001,064,0002,355,200
6May 3, 2026 19:404,754152,840,033136,844,0001,040,0002,367,488
7May 3, 2026 19:404,756155,163,032136,854,0001,090,0002,367,488
8May 3, 2026 19:404,757155,306,322136,914,0001,051,0002,371,584
9May 3, 2026 19:404,763153,692,643136,975,0001,170,0002,363,392