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 listApr 28, 2026 05:47Charles CabergsCharles CabergsScore: 3,687Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 05:473,681125,029,781104,753,0002,014,0002,514,944
2Apr 28, 2026 05:473,682128,011,992103,801,0002,994,0002,506,752
3Apr 28, 2026 05:473,686125,598,965104,911,0001,998,0002,441,216
4Apr 28, 2026 05:473,686126,176,109103,905,0002,997,0002,338,816
5Apr 28, 2026 05:473,687123,703,466104,944,0001,998,0002,514,944
6Apr 28, 2026 05:473,688124,653,216103,974,0002,999,0002,322,432
7Apr 28, 2026 05:473,688124,882,991103,971,0002,999,0002,502,656
8Apr 28, 2026 05:473,689127,843,603104,991,0001,999,0002,502,656
9Apr 28, 2026 05:473,690127,935,404104,034,0003,001,0002,510,848