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:05E SequeiraE SequeiraScore: 17,622Success
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:0617,422270,391,10343,120,00035,280,00029,552,640
2Dec 7, 2024 19:5917,429272,194,92247,471,00030,959,00029,609,984
3Dec 7, 2024 19:5917,437266,438,85844,264,00034,204,00029,618,176
4Dec 7, 2024 19:5917,477262,331,40946,568,00032,080,00029,626,368
5Dec 7, 2024 19:5917,517266,418,47947,511,00031,314,00029,626,368
6Dec 7, 2024 19:5917,598271,228,71747,516,00031,677,00029,626,368
7Dec 7, 2024 20:0517,614268,359,09847,129,00032,134,00029,626,368
8Dec 7, 2024 20:0617,622270,431,24947,152,00032,149,00029,659,136
9Dec 7, 2024 19:5917,730271,446,66043,784,00036,000,00029,609,984
10Dec 7, 2024 19:5917,731272,817,81948,521,00031,269,00029,716,480
11Dec 7, 2024 20:0617,836272,646,04341,998,00038,265,00029,761,536
12Dec 7, 2024 19:5917,847269,881,90446,496,00033,815,00029,552,640
13Dec 7, 2024 20:0517,861266,382,11947,590,00032,784,00029,548,544
14Dec 7, 2024 20:0517,862274,079,66445,342,00035,037,00029,659,136
15Dec 7, 2024 19:5917,930273,198,48544,279,00036,407,00029,659,136