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 01:06Yuriy LyfenkoYuriy LyfenkoScore: 16,939Success
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 01:069,783108,872,51944,024,67602,252,800
2Oct 11, 2021 01:069,790114,254,01044,054,02402,252,800
3Oct 11, 2021 01:069,792118,551,11844,065,39302,252,800
4Oct 11, 2021 01:0616,673257,348,20644,383,00030,645,00027,578,368
5Oct 11, 2021 01:0616,810265,892,73344,559,00031,087,00029,708,288
6Oct 11, 2021 01:0616,884260,327,29640,334,00035,644,00028,995,584
7Oct 11, 2021 01:0616,939268,416,70649,322,00026,903,00029,675,520
8Oct 11, 2021 01:0616,966259,892,29543,332,00033,014,00029,605,888
9Oct 11, 2021 01:0616,989265,075,84343,392,00033,060,00029,577,216
10Oct 11, 2021 01:0617,020270,704,88145,115,00031,475,00029,675,520
11Oct 11, 2021 01:0617,057266,793,21148,844,00027,911,00029,536,256
12Oct 11, 2021 01:0617,063263,813,65040,361,00036,423,00029,667,328