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 listDec 6, 2024 17:13E SequeiraE SequeiraScore: 24,552Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 17:1324,216298,644,30477,836,00031,134,00029,626,368
2Dec 6, 2024 17:1324,234301,210,65278,189,00030,864,00029,528,064
3Dec 6, 2024 17:1324,327308,364,17776,329,00033,143,00029,577,216
4Dec 6, 2024 17:1324,386307,128,34572,835,00036,903,00029,609,984
5Dec 6, 2024 17:1324,552297,136,84974,651,00035,832,00029,552,640
6Dec 6, 2024 17:1324,565298,415,29579,257,00031,285,00029,626,368
7Dec 6, 2024 17:1324,808307,562,92176,814,00034,822,00029,528,064
8Dec 6, 2024 17:1324,832306,772,73074,830,00036,916,00029,532,160
9Dec 6, 2024 17:1325,020303,753,56776,076,00036,516,00029,626,368