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 5, 2023 17:01Jörn HorstmannJörn HorstmannScore: 23,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2023 17:0115,632135,752,63970,344,34802,207,744
2Jul 5, 2023 17:0115,636143,658,61570,361,89102,207,744
3Jul 5, 2023 17:0115,844142,763,36971,299,92402,203,648
4Jul 5, 2023 17:0122,981292,444,26970,601,00032,814,00029,663,232
5Jul 5, 2023 17:0123,001290,220,11666,747,00036,759,00029,642,752
6Jul 5, 2023 17:0123,002288,461,19368,019,00035,488,00029,696,000
7Jul 5, 2023 17:0123,011293,635,04974,264,00029,287,00029,564,928
8Jul 5, 2023 17:0123,052289,413,66069,821,00033,913,00029,646,848
9Jul 5, 2023 17:0123,079292,688,75774,947,00028,908,00029,532,160
10Jul 5, 2023 17:0123,183296,281,85477,403,00026,922,00029,663,232
11Jul 5, 2023 17:0123,237296,069,15669,376,00035,191,00029,548,544
12Jul 5, 2023 17:0123,470303,605,56170,753,00034,864,00029,671,424