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 7, 2024 20:06E SequeiraE SequeiraScore: 16,849Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 7, 2024 20:1116,511261,708,46542,458,00031,843,00029,626,368
2Dec 7, 2024 20:0816,628264,405,93237,412,00037,412,00029,659,136
3Dec 7, 2024 20:0616,642265,744,86242,192,00032,699,00029,626,368
4Dec 7, 2024 20:1116,658268,478,41043,287,00031,673,00029,491,200
5Dec 7, 2024 20:0816,665266,333,75443,475,00031,519,00029,552,640
6Dec 7, 2024 20:0816,687264,144,07345,054,00030,036,00029,609,984
7Dec 7, 2024 20:0616,706269,133,43941,652,00033,525,00029,626,368
8Dec 7, 2024 20:0616,718265,984,97241,224,00034,009,00029,659,136
9Dec 7, 2024 20:1116,721262,214,69340,673,00034,572,00029,495,296
10Dec 7, 2024 20:1116,730261,375,88739,623,00035,661,00029,724,672
11Dec 7, 2024 20:0816,804267,381,66944,292,00031,328,00029,626,368
12Dec 7, 2024 20:1116,842260,605,57140,422,00035,369,00029,556,736
13Dec 7, 2024 20:0616,848272,553,72743,952,00031,865,00029,569,024
14Dec 7, 2024 20:0816,849263,165,26242,715,00033,104,00029,544,448
15Dec 7, 2024 20:0616,870267,724,02543,379,00032,534,00029,540,352
16Dec 7, 2024 20:0816,916265,758,66742,290,00033,832,00029,626,368
17Dec 7, 2024 20:0616,918265,629,42142,890,00033,240,00029,585,408
18Dec 7, 2024 20:0616,927261,650,77343,375,00032,796,00029,626,368
19Dec 7, 2024 20:0616,958262,177,36444,888,00031,421,00029,618,176
20Dec 7, 2024 20:0816,968268,908,09040,135,00036,220,00029,659,136
21Dec 7, 2024 20:1116,968266,691,05843,633,00032,725,00029,495,296
22Dec 7, 2024 20:0817,008267,372,81539,759,00036,777,00029,491,200
23Dec 7, 2024 20:1117,011272,852,27043,743,00032,807,00029,544,448
24Dec 7, 2024 20:1117,022272,899,15141,971,00034,626,00029,495,296
25Dec 7, 2024 20:0817,029266,375,27339,297,00037,332,00029,618,176
26Dec 7, 2024 20:0617,044272,064,67445,789,00030,907,00029,659,136
27Dec 7, 2024 20:1117,550274,110,29242,987,00035,989,00029,609,984