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:28Jörn HorstmannJörn HorstmannScore: 26,115Success
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:2818,641138,789,02283,886,14802,220,032
2Jul 3, 2023 22:2818,653140,532,03983,939,15702,211,840
3Jul 3, 2023 22:2818,667163,665,69684,003,21002,195,456
4Jul 3, 2023 22:2825,944300,801,77781,724,00035,024,00029,663,232
5Jul 3, 2023 22:2825,995303,431,17389,075,00027,903,00029,564,928
6Jul 3, 2023 22:2826,101310,884,20188,092,00029,364,00029,532,160
7Jul 3, 2023 22:2826,115307,002,06383,368,00034,151,00029,696,000
8Jul 3, 2023 22:2826,192308,368,79184,622,00033,244,00029,671,424
9Jul 3, 2023 22:2826,258310,766,24488,620,00029,540,00029,532,160
10Jul 3, 2023 22:2826,330307,852,72390,222,00028,262,00029,642,752
11Jul 3, 2023 22:2826,345309,174,48785,563,00032,988,00029,630,464
12Jul 3, 2023 22:2826,407317,219,95785,765,00033,066,00029,696,000