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 listJul 20, 2023 15:54gchebanovgchebanovScore: 15,530Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 15:544,66788,055,88021,002,14502,256,896
2Jul 20, 2023 15:544,66988,331,91821,009,88602,260,992
3Jul 20, 2023 15:544,67295,913,05621,025,12302,260,992
4Jul 20, 2023 15:5415,301256,326,11635,925,00032,931,00029,536,256
5Jul 20, 2023 15:5415,479260,591,49730,860,00038,795,00029,626,368
6Jul 20, 2023 15:5415,490256,866,39637,455,00032,252,00029,548,544
7Jul 20, 2023 15:5415,530256,841,02435,448,00034,435,00029,487,104
8Jul 20, 2023 15:5415,536255,872,94536,475,00033,435,00029,491,200
9Jul 20, 2023 15:5415,540254,383,53337,741,00032,191,00029,659,136
10Jul 20, 2023 15:5415,553255,709,29434,023,00035,967,00029,757,440
11Jul 20, 2023 15:5415,763256,471,56835,467,00035,467,00029,626,368
12Jul 20, 2023 15:5415,967268,332,91638,171,00033,680,00029,659,136