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 MartinScore: 5,512Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 05:355,509191,233,617158,766,000998,0002,334,720
2Jan 2, 2026 05:355,511185,844,498158,817,000998,0002,289,664
3Jan 2, 2026 05:355,511185,205,350159,822,00002,338,816
4Jan 2, 2026 05:355,511185,461,726158,827,000998,0002,289,664
5Jan 2, 2026 05:355,511187,017,429158,829,000998,0002,289,664
6Jan 2, 2026 05:355,512185,970,286159,838,00002,289,664
7Jan 2, 2026 05:355,512186,620,444158,847,000999,0002,289,664
8Jan 2, 2026 05:355,512187,273,519157,851,0001,998,0002,289,664
9Jan 2, 2026 05:355,513188,330,619158,885,000999,0002,334,720
10Jan 2, 2026 05:375,514187,544,213158,901,000999,0002,285,568
11Jan 2, 2026 05:375,514189,878,095159,911,00002,289,664
12Jan 2, 2026 05:375,514186,515,118158,918,000999,0002,289,664