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 10, 2024 15:05E SequeiraE SequeiraScore: 16,680Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 10, 2024 14:4816,429263,460,95137,433,00036,497,00029,528,064
2Dec 10, 2024 15:0516,538268,543,68835,072,00039,349,00029,753,344
3Dec 10, 2024 15:0516,558269,659,62339,613,00034,897,00029,728,768
4Dec 10, 2024 14:4816,579268,340,98342,483,00032,121,00029,609,984
5Dec 10, 2024 15:0516,606262,415,22039,329,00035,396,00029,630,464
6Dec 10, 2024 14:5816,648265,595,11940,338,00034,576,00029,626,368
7Dec 10, 2024 14:5816,663261,062,46043,468,00031,514,00029,642,752
8Dec 10, 2024 15:0516,680261,189,18941,701,00033,361,00029,753,344
9Dec 10, 2024 15:0516,695263,659,17540,530,00034,599,00029,626,368
10Dec 10, 2024 14:4816,818267,339,38444,768,00030,911,00029,552,640
11Dec 10, 2024 15:0516,856271,615,68837,457,00038,393,00029,569,024
12Dec 10, 2024 15:0516,904265,998,02640,570,00035,498,00029,659,136
13Dec 10, 2024 14:5816,923268,436,79643,366,00032,789,00029,626,368
14Dec 10, 2024 15:0516,951266,815,08341,232,00035,047,00029,659,136
15Dec 10, 2024 15:0517,316271,208,46544,226,00033,696,00029,614,080