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 00:45Yuriy LyfenkoYuriy LyfenkoScore: 17,616Success
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 00:4510,575111,281,39247,587,41002,252,800
2Oct 11, 2021 00:4510,587115,374,27147,643,47102,252,800
3Oct 11, 2021 00:4510,589115,231,77347,650,20402,252,800
4Oct 11, 2021 00:4517,547262,527,94844,415,00034,545,00029,708,288
5Oct 11, 2021 00:4517,570269,167,23547,233,00031,831,00029,704,192
6Oct 11, 2021 00:4517,588268,594,91748,788,00030,357,00029,708,288
7Oct 11, 2021 00:4517,616267,321,02946,327,00032,944,00029,577,216
8Oct 11, 2021 00:4517,618273,163,21545,586,00033,694,00029,446,144
9Oct 11, 2021 00:4517,660266,853,91751,489,00027,983,00029,655,040
10Oct 11, 2021 00:4517,673276,948,65242,539,00036,990,00029,675,520
11Oct 11, 2021 00:4517,790272,659,61554,582,00025,471,00029,609,984
12Oct 11, 2021 00:4517,845274,501,84848,604,00031,698,00029,659,136