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 listJul 3, 2023 07:56Jörn HorstmannJörn HorstmannScore: 22,507Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 07:5614,957135,028,88267,307,84202,211,840
2Jul 3, 2023 07:5614,958132,006,15667,310,18302,203,648
3Jul 3, 2023 07:5614,984139,294,33767,427,76002,211,840
4Jul 3, 2023 07:5622,301287,784,42165,920,00034,435,00029,696,000
5Jul 3, 2023 07:5622,412288,928,40871,128,00029,725,00029,646,848
6Jul 3, 2023 07:5622,481293,036,67671,659,00029,506,00029,646,848
7Jul 3, 2023 07:5622,507297,899,37770,364,00030,917,00029,696,000
8Jul 3, 2023 07:5622,523287,318,15270,735,00030,617,00029,523,968
9Jul 3, 2023 07:5622,572295,385,59473,176,00028,397,00029,614,080
10Jul 3, 2023 07:5622,627288,566,87073,657,00028,163,00029,696,000
11Jul 3, 2023 07:5622,642297,794,14168,266,00033,624,00029,511,680
12Jul 3, 2023 07:5622,688300,063,63071,685,00030,411,00029,532,160