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 00:47Yuriy LyfenkoYuriy LyfenkoScore: 17,322Success
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 00:4710,393117,085,46946,769,67502,252,800
2Oct 11, 2021 00:4710,405123,014,41746,824,47702,256,896
3Oct 11, 2021 00:4710,418107,339,86246,881,23902,252,800
4Oct 11, 2021 00:4717,303266,247,57444,922,00032,943,00029,675,520
5Oct 11, 2021 00:4717,308264,546,90240,797,00037,088,00029,544,448
6Oct 11, 2021 00:4717,317267,279,20244,530,00033,397,00029,638,656
7Oct 11, 2021 00:4717,322272,510,40149,406,00028,545,00029,659,136
8Oct 11, 2021 00:4717,375269,488,67544,105,00034,081,00029,548,544
9Oct 11, 2021 00:4717,396271,260,27651,053,00027,228,00029,540,352
10Oct 11, 2021 00:4717,466271,510,34444,912,00033,684,00029,741,056
11Oct 11, 2021 00:4717,532268,219,64146,715,00032,181,00029,548,544
12Oct 11, 2021 00:4717,545271,426,35649,346,00029,607,00029,675,520