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 06:57Ilya AniskovetsIlya AniskovetsScore: 17,625Success
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 06:5710,303117,810,17446,361,97402,260,992
2Oct 15, 2021 06:5710,303115,086,97246,363,69502,273,280
3Oct 15, 2021 06:5710,418105,961,37746,879,75502,256,896
4Oct 15, 2021 06:5717,587265,333,79947,057,00032,084,00029,630,464
5Oct 15, 2021 06:5717,597268,756,85246,888,00032,300,00029,560,832
6Oct 15, 2021 06:5717,623268,089,61641,051,00038,252,00029,696,000
7Oct 15, 2021 06:5717,625267,832,56447,805,00031,508,00029,552,640
8Oct 15, 2021 06:5717,626263,474,80646,355,00032,963,00029,548,544
9Oct 15, 2021 06:5717,631271,282,96349,588,00029,753,00029,630,464
10Oct 15, 2021 06:5717,709263,474,27044,826,00034,865,00029,593,600
11Oct 15, 2021 06:5717,935274,014,08945,833,00034,873,00029,659,136
12Oct 15, 2021 06:5718,060288,812,90447,496,00033,775,00029,548,544