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 01:49Yuriy LyfenkoYuriy LyfenkoScore: 15,574Success
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 01:498,34299,977,77537,540,69002,265,088
2Oct 11, 2021 01:498,347100,231,33537,563,28902,248,704
3Oct 11, 2021 01:498,349105,902,82737,570,18702,244,608
4Oct 11, 2021 01:4915,463255,615,43234,792,00034,792,00029,704,192
5Oct 11, 2021 01:4915,520256,778,37333,484,00036,354,00029,708,288
6Oct 11, 2021 01:4915,558261,477,36937,542,00032,468,00029,708,288
7Oct 11, 2021 01:4915,574257,926,14741,160,00028,923,00029,519,872
8Oct 11, 2021 01:4915,625262,622,35338,943,00031,370,00029,573,120
9Oct 11, 2021 01:4915,637257,498,52035,183,00035,183,00029,667,328
10Oct 11, 2021 01:4915,686260,605,90634,811,00035,778,00029,507,584
11Oct 11, 2021 01:4915,690257,578,41140,345,00030,259,00029,548,544
12Oct 11, 2021 01:4915,694264,027,72138,427,00032,195,00029,708,288