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 listOct 11, 2021 23:18Vitaliy F.Vitaliy F.Score: 47,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 23:1838,198237,051,228171,889,65402,236,416
2Oct 11, 2021 23:1838,201234,372,515171,904,52302,248,704
3Oct 11, 2021 23:1838,213233,981,197171,960,42902,244,608
4Oct 11, 2021 23:1847,406416,986,772182,259,00031,067,00029,511,680
5Oct 11, 2021 23:1847,679414,615,137179,483,00035,071,00029,569,024
6Oct 11, 2021 23:1847,705419,980,294172,358,00042,315,00029,765,632
7Oct 11, 2021 23:1847,770419,376,232185,136,00029,827,00029,581,312
8Oct 11, 2021 23:1847,774410,303,325182,226,00032,759,00029,696,000
9Oct 11, 2021 23:1847,838417,655,037175,752,00039,518,00029,585,408
10Oct 11, 2021 23:1847,886414,631,510183,217,00032,271,00029,741,056
11Oct 11, 2021 23:1847,887424,497,479182,189,00033,303,00029,741,056
12Oct 11, 2021 23:1847,913425,654,153182,753,00032,854,00029,614,080