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.

Date AuthorLanguageStatus Score
Mar 10, 2026 03:50Josu San MartinJosu San MartinCPPg++13.3.0Success3,431+2.55 RP
Mar 10, 2026 02:01Josu San MartinJosu San MartinCPPg++13.3.0Error+27.72 RP
Mar 10, 2026 02:01Josu San MartinJosu San MartinCPPg++13.3.0Success3,468
Mar 10, 2026 00:55Josu San MartinJosu San MartinCPPg++13.3.0Error+92.60 RP
Mar 10, 2026 00:16Josu San MartinJosu San MartinCPPg++13.3.0Success3,654
Mar 9, 2026 23:58Josu San MartinJosu San MartinCPPg++13.3.0Error+62.48 RP
Mar 9, 2026 23:57Josu San MartinJosu San MartinCPPg++13.3.0Success3,712
Mar 9, 2026 03:03Josu San MartinJosu San MartinCPPg++13.3.0Success3,671
Mar 9, 2026 03:03Josu San MartinJosu San MartinCPPg++13.3.0Error
Mar 9, 2026 02:30Josu San MartinJosu San MartinCPPg++13.3.0Error+14.08 RP
Mar 9, 2026 01:46Josu San MartinJosu San MartinCPPg++13.3.0Success3,688
Mar 9, 2026 01:46Josu San MartinJosu San MartinCPPg++13.3.0Success3,720
Mar 9, 2026 01:46Josu San MartinJosu San MartinCPPg++13.3.0Success3,732
Mar 9, 2026 00:59Josu San MartinJosu San MartinCPPg++13.3.0Success3,766
Mar 8, 2026 16:42Josu San MartinJosu San MartinCPPg++13.3.0Success3,683+0.74 RP
Mar 7, 2026 01:28Josu San MartinJosu San MartinCPPg++13.3.0Success3,785
Mar 7, 2026 01:19Josu San MartinJosu San MartinCPPg++13.3.0Success3,798
Mar 7, 2026 00:53Josu San MartinJosu San MartinCPPclang++18.1.3Success4,028
Mar 7, 2026 00:53Josu San MartinJosu San MartinCPPg++13.3.0Success3,758
Mar 6, 2026 19:19Josu San MartinJosu San MartinCPPg++13.3.0Success3,789
Mar 6, 2026 18:40Josu San MartinJosu San MartinCPPg++13.3.0Success3,725
Mar 5, 2026 22:33Sergey SerebryakovSergey SerebryakovCPPg++13.3.0Error+3'390.98 RP
Mar 4, 2026 14:25DanielDanielRUSTrust-1.93.1Error
Mar 4, 2026 14:23DanielDanielRUSTrust-1.93.1Error+136.74 RP
Mar 4, 2026 14:19DanielDanielRUSTrust-1.93.1Error+1'436.58 RP
Mar 4, 2026 11:44Josu San MartinJosu San MartinCPPg++13.3.0Success3,733
Mar 4, 2026 04:10Josu San MartinJosu San MartinCPPg++13.3.0Success3,931
Mar 4, 2026 03:58Josu San MartinJosu San MartinCPPg++13.3.0Error+66.84 RP
Mar 4, 2026 03:46Josu San MartinJosu San MartinCPPg++13.3.0Success4,258
Mar 4, 2026 03:32Josu San MartinJosu San MartinCPPg++13.3.0Success3,780
Mar 4, 2026 03:31Josu San MartinJosu San MartinCPPg++13.3.0Success3,851
Mar 4, 2026 03:31Josu San MartinJosu San MartinCPPg++13.3.0Success3,937
Mar 4, 2026 03:28Josu San MartinJosu San MartinCPPg++13.3.0Success3,965
Mar 4, 2026 03:27Josu San MartinJosu San MartinCPPg++13.3.0Success3,973
Mar 4, 2026 03:26Josu San MartinJosu San MartinCPPclang++18.1.3Success4,185
Mar 4, 2026 03:06Josu San MartinJosu San MartinCPPclang++18.1.3Success4,367
Mar 4, 2026 03:05Josu San MartinJosu San MartinCPPg++13.3.0Error
Mar 4, 2026 02:59Josu San MartinJosu San MartinCSHARP9.0.13Error
Feb 26, 2026 19:52Josu San MartinJosu San MartinCPPg++13.3.0Error
Feb 26, 2026 18:16Josu San MartinJosu San MartinCPPg++13.3.0Error
Feb 26, 2026 13:09Josu San MartinJosu San MartinCPPg++13.3.0Error
Feb 26, 2026 05:09Josu San MartinJosu San MartinCPPg++13.3.0Success4,049
Feb 26, 2026 05:09Josu San MartinJosu San MartinCPPg++13.3.0Success4,048
Feb 26, 2026 05:09Josu San MartinJosu San MartinCPPclang++18.1.3Success4,206
Feb 26, 2026 05:03Josu San MartinJosu San MartinCPPclang++18.1.3Success4,126
Feb 26, 2026 05:02Josu San MartinJosu San MartinCPPg++13.3.0Success3,971
Feb 26, 2026 05:01Josu San MartinJosu San MartinCPPg++13.3.0Success3,969
Feb 26, 2026 04:29Josu San MartinJosu San MartinCPPg++13.3.0Success3,870
Feb 26, 2026 03:48Josu San MartinJosu San MartinCPPg++13.3.0Error+31.17 RP
Feb 26, 2026 03:38Josu San MartinJosu San MartinCPPg++13.3.0Success3,901
Feb 26, 2026 03:32Josu San MartinJosu San MartinCPPg++13.3.0Success3,890
Feb 26, 2026 03:31Josu San MartinJosu San MartinCPPclang++18.1.3Success4,339
Feb 26, 2026 03:29Josu San MartinJosu San MartinCPPg++13.3.0Success3,889
Feb 26, 2026 03:25Josu San MartinJosu San MartinCPPg++13.3.0Success3,904
Feb 26, 2026 03:21Josu San MartinJosu San MartinCPPg++13.3.0Error+2.74 RP
Feb 26, 2026 03:20Josu San MartinJosu San MartinCPPclang++18.1.3Success4,485
Feb 26, 2026 03:19Josu San MartinJosu San MartinCPPg++13.3.0Success3,916
Feb 22, 2026 07:18olliecrowolliecrowCPPclang++18.1.3Error+0.73 RP
Feb 22, 2026 07:09olliecrowolliecrowCPPclang++18.1.3Error+47.49 RP
Feb 22, 2026 07:04olliecrowolliecrowCPPclang++18.1.3Error+1.41 RP
Feb 22, 2026 07:01olliecrowolliecrowCPPclang++18.1.3Success3,763
Feb 22, 2026 06:48olliecrowolliecrowCPPclang++18.1.3Error+179.14 RP
Feb 22, 2026 06:41olliecrowolliecrowCPPclang++18.1.3Success4,101
Feb 22, 2026 06:35olliecrowolliecrowCPPclang++18.1.3Success4,039
Feb 22, 2026 06:25olliecrowolliecrowCPPclang++18.1.3Success4,039
Feb 22, 2026 06:04olliecrowolliecrowCPPclang++18.1.3Success4,039
Feb 22, 2026 05:54olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 05:45olliecrowolliecrowCPPclang++18.1.3Success4,099
Feb 22, 2026 05:30olliecrowolliecrowCPPclang++18.1.3Error+38.10 RP
Feb 22, 2026 05:23olliecrowolliecrowCPPclang++18.1.3Success4,151
Feb 22, 2026 05:14olliecrowolliecrowCPPclang++18.1.3Success4,099
Feb 22, 2026 05:09olliecrowolliecrowCPPclang++18.1.3Success4,120
Feb 22, 2026 04:52olliecrowolliecrowCPPclang++18.1.3Success4,098
Feb 22, 2026 04:47olliecrowolliecrowCPPclang++18.1.3Error+52.44 RP
Feb 22, 2026 04:41olliecrowolliecrowCPPclang++18.1.3Error+1.71 RP
Feb 22, 2026 04:28olliecrowolliecrowCPPclang++18.1.3Success8,616
Feb 22, 2026 04:23olliecrowolliecrowCPPclang++18.1.3Success4,348
Feb 22, 2026 04:14olliecrowolliecrowCPPclang++18.1.3Success4,202
Feb 22, 2026 04:05olliecrowolliecrowCPPclang++18.1.3Success4,270
Feb 22, 2026 03:55olliecrowolliecrowCPPclang++18.1.3Error+359.31 RP
Feb 22, 2026 03:40olliecrowolliecrowCPPclang++18.1.3Success5,001
Feb 22, 2026 03:29olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 03:20olliecrowolliecrowCPPg++13.3.0Success5,411
Feb 22, 2026 03:12olliecrowolliecrowCPPclang++18.1.3Success4,938
Feb 22, 2026 03:04olliecrowolliecrowCPPclang++18.1.3Error+490.42 RP
Feb 22, 2026 02:56olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 02:47olliecrowolliecrowCPPclang++18.1.3Success6,697
Feb 22, 2026 02:42olliecrowolliecrowCPPclang++18.1.3Success6,629
Feb 22, 2026 02:34olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 02:29olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 02:20olliecrowolliecrowCPPclang++18.1.3Success6,599
Feb 22, 2026 02:15olliecrowolliecrowCPPclang++18.1.3Success6,904
Feb 22, 2026 02:09olliecrowolliecrowCPPclang++18.1.3Success6,509+1.18 RP
Feb 22, 2026 02:03olliecrowolliecrowCPPclang++18.1.3Success6,605
Feb 22, 2026 01:58olliecrowolliecrowCPPclang++18.1.3Success6,561
Feb 22, 2026 01:55olliecrowolliecrowCPPclang++18.1.3Success6,592
Feb 22, 2026 01:54olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:53olliecrowolliecrowCPPg++13.3.0Success7,185
Feb 22, 2026 01:50olliecrowolliecrowCPPclang++18.1.3Success6,514+16.32 RP
Feb 22, 2026 01:47olliecrowolliecrowCPPclang++18.1.3Success6,584+6.89 RP