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 14:49Yuriy LyfenkoYuriy LyfenkoScore: 15,418Success
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 14:498,19598,674,60836,875,51602,248,704
2Oct 15, 2021 14:498,196114,739,02836,884,09802,265,088
3Oct 15, 2021 14:498,201101,132,51936,903,36902,244,608
4Oct 15, 2021 14:4915,372252,495,90940,166,00029,009,00029,708,288
5Oct 15, 2021 14:4915,400258,216,54032,776,00036,522,00029,659,136
6Oct 15, 2021 14:4915,406258,988,63338,515,00030,812,00029,708,288
7Oct 15, 2021 14:4915,418263,118,75837,845,00031,538,00029,671,424
8Oct 15, 2021 14:4915,558259,098,90042,007,00028,004,00029,548,544
9Oct 15, 2021 14:4915,563262,970,38937,077,00032,958,00029,708,288
10Oct 15, 2021 14:4915,574261,993,12141,361,00028,722,00029,544,448
11Oct 15, 2021 14:4915,714271,964,49441,250,00029,464,00029,507,584
12Oct 15, 2021 14:4915,803269,153,69037,149,00033,965,00029,544,448