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 22:02Jörn HorstmannJörn HorstmannScore: 27,496Success
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 22:0220,085140,712,68490,380,45902,203,648
2Jul 3, 2023 22:0220,723165,042,26093,252,54102,260,992
3Jul 3, 2023 22:0220,734164,596,38393,301,31802,211,840
4Jul 3, 2023 22:0227,308312,524,84890,182,00032,703,00029,650,944
5Jul 3, 2023 22:0227,354308,929,31390,538,00032,553,00029,696,000
6Jul 3, 2023 22:0227,407304,140,93487,680,00035,650,00029,638,656
7Jul 3, 2023 22:0227,496312,752,87291,767,00031,963,00029,564,928
8Jul 3, 2023 22:0227,516312,335,00788,871,00034,949,00029,642,752
9Jul 3, 2023 22:0227,569308,185,46387,231,00036,831,00029,646,848
10Jul 3, 2023 22:0227,619312,223,86493,214,00031,071,00029,696,000
11Jul 3, 2023 22:0227,742316,707,74591,615,00033,223,00029,728,768
12Jul 3, 2023 22:0228,053318,759,68694,678,00031,559,00029,589,504