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 listOct 15, 2021 07:52Ilya AniskovetsIlya AniskovetsScore: 14,979Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 07:527,580106,357,24734,109,98702,256,896
2Oct 15, 2021 07:527,625100,828,66034,313,11302,277,376
3Oct 15, 2021 07:527,68493,142,38734,576,25802,273,280
4Oct 15, 2021 07:5214,827240,939,26639,027,00027,696,00026,746,880
5Oct 15, 2021 07:5214,832253,896,61431,021,00035,721,00029,626,368
6Oct 15, 2021 07:5214,881251,254,41031,982,00034,981,00029,495,296
7Oct 15, 2021 07:5214,979259,568,72533,703,00033,703,00029,495,296
8Oct 15, 2021 07:5215,019256,406,03331,804,00035,780,00029,638,656
9Oct 15, 2021 07:5215,058245,499,13637,385,00030,375,00027,561,984
10Oct 15, 2021 07:5215,064257,973,92036,155,00031,635,00029,696,000
11Oct 15, 2021 07:5215,117258,454,21932,490,00035,536,00029,511,680
12Oct 15, 2021 07:5215,187256,526,64430,477,00037,865,00029,700,096