Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Date AuthorLanguageStatus Score
Feb 22, 2026 04:59olliecrowolliecrowCPPclang++18.1.3Success8,248+0.44 RP
Feb 22, 2026 04:58olliecrowolliecrowCPPclang++18.1.3Success8,251+1.03 RP
Feb 22, 2026 04:49olliecrowolliecrowCPPclang++18.1.8Success8,258+4.67 RP
Feb 22, 2026 04:45olliecrowolliecrowCPPclang++18.1.8Success9,645
Feb 22, 2026 04:44olliecrowolliecrowCPPclang++18.1.8Success8,444
Feb 22, 2026 04:40olliecrowolliecrowCPPclang++18.1.8Success8,290+4.78 RP
Feb 22, 2026 04:38olliecrowolliecrowCPPclang++18.1.8Success8,414
Feb 22, 2026 04:36olliecrowolliecrowCPPclang++18.1.8Success8,323+140.03 RP
Feb 22, 2026 04:33olliecrowolliecrowCPPclang++18.1.8Success9,463
Feb 22, 2026 04:21olliecrowolliecrowCPPclang++18.1.8Success9,421+0.34 RP
Feb 22, 2026 04:09olliecrowolliecrowCPPclang++18.1.8Success9,454
Feb 22, 2026 04:06olliecrowolliecrowCPPclang++18.1.8Success9,658
Feb 22, 2026 04:00olliecrowolliecrowCPPclang++18.1.8Success9,424+125.14 RP
Feb 22, 2026 03:48olliecrowolliecrowCPPg++13.3.0Error
Feb 22, 2026 03:42olliecrowolliecrowCPPg++13.3.0Success10,684+1.66 RP
Feb 22, 2026 03:37olliecrowolliecrowCPPg++13.3.0Success25,964
Feb 22, 2026 03:29olliecrowolliecrowCPPg++13.3.0Success21,512
Feb 22, 2026 03:15olliecrowolliecrowCPPg++13.3.0Success10,866
Feb 22, 2026 03:05olliecrowolliecrowCPPg++13.3.0Success10,703+1.92 RP
Feb 22, 2026 03:00olliecrowolliecrowCPPg++13.3.0Success10,725+6.30 RP
Feb 22, 2026 02:50olliecrowolliecrowCPPg++13.3.0Success10,798+1.37 RP
Feb 22, 2026 02:47olliecrowolliecrowCPPg++13.3.0Success10,814+43.98 RP
Feb 22, 2026 02:38olliecrowolliecrowCPPg++13.3.0Success26,554
Feb 22, 2026 02:34olliecrowolliecrowCPPg++13.3.0Success11,354+99.37 RP
Feb 22, 2026 02:26olliecrowolliecrowCPPg++13.3.0Success12,798+141.49 RP
Feb 22, 2026 02:24olliecrowolliecrowCPPg++13.3.0Error
Feb 22, 2026 02:20olliecrowolliecrowCPPclang++18.1.3Success19,689
Feb 22, 2026 02:18olliecrowolliecrowCPPg++13.3.0Success17,257
Feb 22, 2026 02:16olliecrowolliecrowCPPg++13.3.0Success15,640
Feb 22, 2026 02:13olliecrowolliecrowCPPg++13.3.0Success15,628+135.13 RP
Feb 22, 2026 02:09olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 02:06olliecrowolliecrowCPPclang++18.1.3Success19,812+53.13 RP
Feb 22, 2026 02:04olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 02:03olliecrowolliecrowCPPclang++18.1.3Success22,143+451.61 RP
Feb 22, 2026 02:02olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 02:00olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:58olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:57olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:55olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:51olliecrowolliecrowCPPg++13.3.0Error
Feb 22, 2026 01:48olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:45olliecrowolliecrowCPPclang++18.1.3Error
Feb 22, 2026 01:42olliecrowolliecrowCPPclang++18.1.3Error
Jan 2, 2026 17:40Yehor BondarYehor BondarCPPclang++18.1.3Success14,266+586.37 RP
Jan 2, 2026 16:31Yehor BondarYehor BondarGOgo1.25.5Success87,735
Dec 31, 2025 18:57KeefeKeefeCPPg++13.3.0Error
Dec 31, 2025 17:40Aniruddha DebAniruddha DebCPPg++13.3.0Success4,042
Dec 31, 2025 17:21Aniruddha DebAniruddha DebCPPg++13.3.0Error
Dec 31, 2025 17:13Aniruddha DebAniruddha DebCPPg++13.3.0Success10,030
Dec 31, 2025 17:08Aniruddha DebAniruddha DebCPPg++13.3.0Success4,198
Dec 31, 2025 17:03Aniruddha DebAniruddha DebCPPclang++18.1.3Success6,479
Dec 31, 2025 12:10Aniruddha DebAniruddha DebCPPg++13.3.0Success4,080
Dec 31, 2025 12:08Aniruddha DebAniruddha DebCPPg++13.3.0Error
Dec 30, 2025 17:38Yehor BondarYehor BondarGOgo1.25.5Success87,264+19.38 RP
Dec 30, 2025 17:18Yehor BondarYehor BondarGOgo1.25.5Error
Dec 30, 2025 17:13Yehor BondarYehor BondarGOgo1.25.5Error
Dec 30, 2025 02:26Josu San MartinJosu San MartinRUSTrust-1.92.0Success7,087
Dec 30, 2025 02:20Josu San MartinJosu San MartinRUSTrust-1.92.0Success10,532
Dec 30, 2025 02:19Josu San MartinJosu San MartinRUSTrust-1.92.0Success11,213
Dec 30, 2025 02:04Josu San MartinJosu San MartinRUSTrust-1.92.0Success7,252
Dec 30, 2025 02:02Josu San MartinJosu San MartinRUSTrust-1.92.0Success6,687+1'881.41 RP
Dec 30, 2025 01:41Josu San MartinJosu San MartinRUSTrust-1.92.0Error
Dec 30, 2025 01:33Josu San MartinJosu San MartinRUSTrust-1.92.0Error
Dec 30, 2025 01:32Josu San MartinJosu San MartinRUSTrust-1.92.0Error
Dec 30, 2025 01:06Josu San MartinJosu San MartinRUSTrust-1.92.0Success24,991+147.82 RP
Dec 30, 2025 01:06Josu San MartinJosu San MartinRUSTrust-1.92.0Success39,631+252.33 RP
Dec 29, 2025 15:53Josu San MartinJosu San MartinRUSTrust-1.92.0Error
Dec 29, 2025 15:51Josu San MartinJosu San MartinRUSTrust-1.92.0Error
Dec 29, 2025 15:49Josu San MartinJosu San MartinRUSTrust-1.92.0Error
Dec 22, 2025 22:20JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 22:19JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 22:15JulesPrieuxJulesPrieuxRUSTrust-1.92.0Success29,824+229.99 RP
Dec 22, 2025 22:10JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 22:09JulesPrieuxJulesPrieuxRUSTrust-1.92.0Success99,000
Dec 22, 2025 21:59JulesPrieuxJulesPrieuxRUSTrust-1.92.0Success94,954+96.69 RP
Dec 22, 2025 21:50JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 21:46JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 21:44JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 21:40JulesPrieuxJulesPrieuxRUSTrust-1.92.0Error
Dec 22, 2025 21:13JulesPrieuxJulesPrieuxGOgo1.25.5Success1,160,029+8.62 RP
Dec 5, 2025 02:56Yehor BondarYehor BondarGOgo1.25.5Success105,029+95.21 RP
Nov 19, 2025 18:09Yuriy LyfenkoYuriy LyfenkoCPPg++13.3.0Success3,012
Nov 19, 2025 18:08Yuriy LyfenkoYuriy LyfenkoCPPg++13.3.0Success3,005
Nov 16, 2025 00:20Aniruddha DebAniruddha DebCPPg++13.3.0Success4,033+595.24 RP
Nov 16, 2025 00:09Aniruddha DebAniruddha DebCPPg++13.3.0Success5,661
Nov 16, 2025 00:07Aniruddha DebAniruddha DebCPPg++13.3.0Success5,528
Nov 16, 2025 00:01Aniruddha DebAniruddha DebCPPg++13.3.0Success5,307+1.06 RP
Nov 16, 2025 00:00Aniruddha DebAniruddha DebCPPg++13.3.0Success5,628
Nov 15, 2025 23:50Aniruddha DebAniruddha DebCPPg++13.3.0Success8,317
Nov 15, 2025 23:48Aniruddha DebAniruddha DebCPPg++13.3.0Success5,669
Nov 15, 2025 23:46Aniruddha DebAniruddha DebCPPg++13.3.0Success5,669
Nov 15, 2025 23:46Aniruddha DebAniruddha DebCPPg++13.3.0Success5,690
Nov 15, 2025 23:44Aniruddha DebAniruddha DebCPPg++13.3.0Success5,754
Nov 15, 2025 23:44Aniruddha DebAniruddha DebCPPg++13.3.0Success5,467
Nov 15, 2025 23:36Aniruddha DebAniruddha DebCPPg++13.3.0Success5,310+14.78 RP
Nov 15, 2025 23:33Aniruddha DebAniruddha DebCPPg++13.3.0Success5,352+118.99 RP
Nov 15, 2025 23:29Aniruddha DebAniruddha DebCPPclang++18.1.3Success7,975
Nov 14, 2025 14:11izotoffizotoffGOgo1.24.4Success101,719
Nov 14, 2025 14:09izotoffizotoffGOgo1.24.4Success101,489
Nov 14, 2025 14:08izotoffizotoffGOgo1.18Success450,289