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 10:54tirochkintirochkinScore: 44,049Success
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 10:5437,059231,854,660166,764,92402,224,128
2Oct 11, 2021 10:5437,117223,339,602167,027,33002,228,224
3Oct 11, 2021 10:5437,237235,299,535167,568,15002,228,224
4Oct 11, 2021 10:5443,863383,947,536144,280,00053,103,00029,732,864
5Oct 11, 2021 10:5443,920381,309,249148,232,00049,410,00029,601,792
6Oct 11, 2021 10:5444,040386,068,746152,285,00045,894,00029,667,328
7Oct 11, 2021 10:5444,049388,367,532149,676,00048,543,00029,667,328
8Oct 11, 2021 10:5444,089386,973,168154,969,00043,430,00029,528,064
9Oct 11, 2021 10:5444,180373,670,247156,852,00041,960,00029,495,296
10Oct 11, 2021 10:5444,221380,550,195146,628,00052,367,00029,556,736
11Oct 11, 2021 10:5444,250389,176,557152,331,00046,794,00029,700,096
12Oct 11, 2021 10:5444,268376,213,280138,535,00060,672,00029,732,864