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 30, 2026 16:21Charles CabergsCharles CabergsScore: 20,906Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 16:2220,893629,351,078603,921,0001,999,0002,338,816stderr
2Apr 30, 2026 16:2220,897627,025,461603,020,0003,000,0002,506,752stderr
3Apr 30, 2026 16:2220,903622,676,590604,203,0002,000,0002,334,720stderr
4Apr 30, 2026 16:2220,905625,010,651603,272,0002,996,0002,322,432stderr
5Apr 30, 2026 16:2220,906626,858,696604,291,0001,997,0002,502,656stderr
6Apr 30, 2026 16:2220,907621,771,805603,333,0002,996,0002,314,240stderr
7Apr 30, 2026 16:2220,907624,772,066603,312,0002,996,0002,510,848stderr
8Apr 30, 2026 16:2220,910623,429,871604,419,0001,998,0002,498,560stderr
9Apr 30, 2026 16:2220,915627,012,655604,537,0001,998,0002,510,848stderr