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 11, 2021 02:05Yuriy LyfenkoYuriy LyfenkoScore: 15,402Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 02:058,198112,429,88336,890,25902,244,608
2Oct 11, 2021 02:058,199105,918,81636,894,76602,252,800
3Oct 11, 2021 02:058,20199,403,24436,906,25102,256,896
4Oct 11, 2021 02:0515,310260,619,64436,475,00032,422,00029,646,848
5Oct 11, 2021 02:0515,322257,475,07535,489,00033,461,00029,667,328
6Oct 11, 2021 02:0515,367256,161,61834,575,00034,575,00029,679,616
7Oct 11, 2021 02:0515,402262,757,46841,825,00027,485,00029,708,288
8Oct 11, 2021 02:0515,432262,018,35541,232,00028,211,00029,659,136
9Oct 11, 2021 02:0515,496256,559,89037,467,00032,263,00029,544,448
10Oct 11, 2021 02:0515,534265,811,93642,183,00027,720,00029,708,288
11Oct 11, 2021 02:0515,552264,707,57338,273,00031,711,00029,544,448
12Oct 11, 2021 02:0515,668261,737,94035,765,00034,743,00029,675,520