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 15, 2021 18:48Yuriy LyfenkoYuriy LyfenkoScore: 13,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 18:486,40793,924,60928,831,62302,256,896
2Oct 15, 2021 18:486,41084,740,36928,846,34002,240,512
3Oct 15, 2021 18:486,411103,460,45328,851,72202,256,896
4Oct 15, 2021 18:4813,499253,471,40427,799,00032,947,00029,638,656
5Oct 15, 2021 18:4813,504251,442,75829,831,00030,936,00029,712,384
6Oct 15, 2021 18:4813,514253,015,63325,655,00035,157,00029,675,520
7Oct 15, 2021 18:4813,538251,445,02326,109,00034,812,00029,544,448
8Oct 15, 2021 18:4813,584254,867,94724,633,00036,493,00029,577,216
9Oct 15, 2021 18:4813,711248,026,33633,222,00028,476,00029,675,520
10Oct 15, 2021 18:4813,717250,535,64429,798,00031,927,00029,667,328
11Oct 15, 2021 18:4813,763249,713,78527,869,00034,063,00029,773,824
12Oct 15, 2021 18:4813,823251,131,87227,089,00035,115,00029,609,984