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 listJun 28, 2024 15:11AnSaAnSaScore: 25,274Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2024 15:1116,578138,670,06674,599,66902,273,280
2Jun 28, 2024 15:1116,582138,314,80774,619,17802,269,184
3Jun 28, 2024 15:1116,588143,493,32574,646,70302,273,280
4Jun 28, 2024 15:1124,461300,433,50979,859,00030,217,00029,487,104
5Jun 28, 2024 15:1125,139312,894,27375,416,00037,708,00029,544,448
6Jun 28, 2024 15:1125,229307,459,38477,628,00035,903,00029,650,944
7Jun 28, 2024 15:1125,274314,068,34874,873,00038,858,00029,630,464
8Jun 28, 2024 15:1125,598316,716,29179,824,00035,365,00029,614,080
9Jun 28, 2024 15:1125,634313,101,76677,621,00037,732,00029,609,984
10Jun 28, 2024 15:1125,668316,331,98579,348,00036,158,00029,564,928
11Jun 28, 2024 15:1125,682320,049,30080,170,00035,400,00029,720,576
12Jun 28, 2024 15:1125,695311,711,95978,837,00036,790,00029,552,640