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 16, 2021 08:00Ilya AniskovetsIlya AniskovetsScore: 14,685Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 08:007,260103,064,32032,670,78502,277,376
2Oct 16, 2021 08:007,26792,276,27332,702,43602,273,280
3Oct 16, 2021 08:007,387102,300,72133,243,34102,273,280
4Oct 16, 2021 08:0014,632257,216,38032,923,00032,923,00029,663,232
5Oct 16, 2021 08:0014,670254,025,57138,611,00027,402,00029,638,656
6Oct 16, 2021 08:0014,676258,398,45231,988,00034,052,00029,757,440
7Oct 16, 2021 08:0014,685254,044,50636,581,00029,500,00029,663,232
8Oct 16, 2021 08:0014,685249,974,40830,037,00036,045,00029,630,464
9Oct 16, 2021 08:0014,696253,199,87732,032,00034,098,00029,544,448
10Oct 16, 2021 08:0014,787249,616,00732,742,00033,798,00029,626,368
11Oct 16, 2021 08:0014,795264,684,59531,752,00034,825,00029,495,296
12Oct 16, 2021 08:0014,976252,604,29034,249,00033,144,00029,495,296