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 10, 2021 11:11Andrey TsvetkovAndrey TsvetkovScore: 151,120Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 11:1157,901323,384,160260,554,88502,269,184
2Oct 10, 2021 11:1157,903331,760,324260,563,26202,244,608
3Oct 10, 2021 11:1158,250325,824,376262,124,94002,228,224
4Oct 10, 2021 11:11142,442713,245,532640,991,05802,252,800
5Oct 10, 2021 11:11142,898709,132,649643,041,62402,207,744
6Oct 10, 2021 11:11144,795714,937,248651,575,76402,236,416
7Oct 10, 2021 11:11150,818861,432,635631,144,00047,538,00029,687,808
8Oct 10, 2021 11:11151,120859,987,036619,861,00060,180,00029,622,272
9Oct 10, 2021 11:11151,476860,513,488622,197,00059,445,00029,757,440
10Oct 10, 2021 11:11151,730862,584,115617,616,00065,170,00029,589,504
11Oct 10, 2021 11:11152,350865,418,107628,948,00056,625,00029,679,616
12Oct 10, 2021 11:11152,544866,286,414633,645,00052,803,00029,720,576
13Oct 10, 2021 11:11152,628866,654,728628,159,00058,668,00029,655,040
14Oct 10, 2021 11:11153,411872,764,505628,765,00061,585,00029,507,584
15Oct 10, 2021 11:11153,459875,010,960622,007,00068,559,00029,597,696