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 listDec 20, 2024 09:59Mikhail ShirokovMikhail ShirokovScore: 7,708Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 10:247,69162,673,26934,610,00002,289,664
2Dec 20, 2024 09:287,69763,844,82333,617,0001,018,0002,289,664
3Dec 20, 2024 10:247,69763,510,36733,618,0001,018,0002,371,584
4Dec 20, 2024 10:247,69964,912,62134,645,00002,367,488
5Dec 20, 2024 09:287,70270,188,26234,657,00002,367,488
6Dec 20, 2024 09:287,70361,146,35833,646,0001,019,0002,371,584
7Dec 20, 2024 10:247,70364,831,85833,645,0001,019,0002,371,584
8Dec 20, 2024 10:247,70468,549,21733,648,0001,019,0002,359,296
9Dec 20, 2024 10:247,70562,962,98133,653,0001,019,0002,367,488
10Dec 20, 2024 09:287,70760,666,18534,680,00002,363,392
11Dec 20, 2024 10:247,70867,385,32133,664,0001,020,0002,355,200
12Dec 20, 2024 09:597,70861,988,84433,665,0001,020,0002,363,392
13Dec 20, 2024 10:247,71067,600,92033,674,0001,020,0002,289,664
14Dec 20, 2024 09:287,71162,683,15533,679,0001,020,0002,347,008
15Dec 20, 2024 09:287,71360,722,18833,717,000991,0002,355,200
16Dec 20, 2024 10:247,71669,715,15433,700,0001,021,0002,355,200
17Dec 20, 2024 09:597,71667,343,61033,701,0001,021,0002,351,104
18Dec 20, 2024 09:287,71760,780,05533,705,0001,021,0002,289,664
19Dec 20, 2024 09:287,71860,767,78633,712,0001,021,0002,355,200
20Dec 20, 2024 09:287,71961,243,50333,745,000992,0002,289,664
21Dec 20, 2024 09:597,74863,804,72133,872,000996,0002,367,488