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 listJan 2, 2026 05:37Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:29Tomislav Tunkovic33.25CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:290194,751,827172,040,00012,628,0002,117,632line 27: expected -585165082911734 got 585165082911736
2Sep 9, 2026 08:290194,110,005171,727,00012,347,0002,117,632line 46: expected -2070331722939123 got 2048164386395449
3Sep 9, 2026 08:290195,941,014172,140,00013,562,0002,117,632line 30: expected -2009477669810662 got 2001556049195546
4Jan 2, 2026 05:355,509191,233,617158,766,000998,0002,334,720
5Jan 2, 2026 05:355,511185,844,498158,817,000998,0002,289,664
6Jan 2, 2026 05:355,511185,205,350159,822,00002,338,816
7Jan 2, 2026 05:355,511185,461,726158,827,000998,0002,289,664
8Jan 2, 2026 05:355,511187,017,429158,829,000998,0002,289,664
9Jan 2, 2026 05:355,512185,970,286159,838,00002,289,664
10Jan 2, 2026 05:355,512186,620,444158,847,000999,0002,289,664
11Jan 2, 2026 05:355,512187,273,519157,851,0001,998,0002,289,664
12Jan 2, 2026 05:355,513188,330,619158,885,000999,0002,334,720
13Jan 2, 2026 05:375,514187,544,213158,901,000999,0002,285,568
14Jan 2, 2026 05:375,514189,878,095159,911,00002,289,664
15Jan 2, 2026 05:375,514186,515,118158,918,000999,0002,289,664