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
Back to listMar 30, 2025 05:34Alex KentAlex KentScore: 9,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2025 05:349,24666,537,26740,591,0001,014,0002,383,872
2Mar 30, 2025 05:349,25368,460,02740,624,0001,015,0002,387,968
3Mar 30, 2025 05:349,29570,835,51439,837,0001,991,0002,523,136
4Mar 30, 2025 05:349,29867,644,81940,844,000996,0002,519,040
5Mar 30, 2025 05:349,30670,538,58240,880,000997,0002,523,136
6Mar 30, 2025 05:349,30668,630,35139,885,0001,994,0002,379,776
7Mar 30, 2025 05:349,30770,989,54540,883,000997,0002,519,040
8Mar 30, 2025 05:349,31471,799,03640,891,0001,022,0002,387,968
9Mar 30, 2025 05:349,31868,139,00639,933,0001,996,0002,392,064