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 07:00Ilya AniskovetsIlya AniskovetsScore: 17,705Success
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 07:0010,375116,475,28746,685,35602,265,088
2Oct 15, 2021 07:0010,399109,495,88346,793,38902,269,184
3Oct 15, 2021 07:0010,483114,477,80747,171,79802,260,992
4Oct 15, 2021 07:0017,433267,071,55052,690,00025,759,00029,630,464
5Oct 15, 2021 07:0017,577260,428,62844,054,00035,043,00029,757,440
6Oct 15, 2021 07:0017,638266,427,65744,774,00034,598,00029,630,464
7Oct 15, 2021 07:0017,705275,266,10849,796,00029,878,00029,552,640
8Oct 15, 2021 07:0017,756276,841,25148,590,00031,313,00029,630,464
9Oct 15, 2021 07:0017,864270,925,87341,108,00039,281,00029,630,464
10Oct 15, 2021 07:0017,927278,055,13344,818,00035,854,00029,503,488
11Oct 15, 2021 07:0018,050270,248,22150,336,00030,888,00029,663,232
12Oct 15, 2021 07:0018,210274,997,59050,076,00031,867,00029,630,464