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 listJun 11, 2023 22:03Victor MuñozVictor MuñozScore: 11,804Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2023 22:034,90174,442,42322,054,94502,260,992
2Jun 11, 2023 22:034,90484,157,07422,065,91002,265,088
3Jun 11, 2023 22:034,90486,246,07122,068,29202,260,992
4Jun 11, 2023 22:0311,722247,616,05618,909,00033,838,00029,757,440
5Jun 11, 2023 22:0311,749245,107,98516,468,00036,403,00029,630,464
6Jun 11, 2023 22:0311,758240,381,84917,637,00035,274,00029,634,560
7Jun 11, 2023 22:0311,804243,108,11121,026,00032,092,00029,495,296
8Jun 11, 2023 22:0311,869238,430,28919,147,00034,263,00029,663,232
9Jun 11, 2023 22:0311,934241,692,54920,138,00033,564,00029,548,544
10Jun 11, 2023 22:0311,947243,915,84318,610,00035,153,00029,548,544
11Jun 11, 2023 22:0311,953241,262,19320,439,00033,349,00029,630,464
12Jun 11, 2023 22:0312,063245,194,51815,509,00038,774,00029,548,544