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 20:21Jörn HorstmannJörn HorstmannScore: 20,948Success
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 20:2113,734115,996,87161,800,96302,207,744
2Jul 5, 2023 20:2113,791133,082,85262,057,30402,211,840
3Jul 5, 2023 20:2113,841115,957,45962,285,95502,207,744
4Jul 5, 2023 20:2120,811283,561,95559,147,00034,502,00029,638,656
5Jul 5, 2023 20:2120,842278,648,67965,436,00028,355,00029,655,040
6Jul 5, 2023 20:2120,878278,616,65457,521,00036,430,00029,564,928
7Jul 5, 2023 20:2120,948288,325,17659,281,00034,985,00029,552,640
8Jul 5, 2023 20:2120,992278,615,56560,944,00033,519,00029,638,656
9Jul 5, 2023 20:2121,059294,048,70564,614,00030,153,00029,532,160
10Jul 5, 2023 20:2121,060282,572,30660,492,00034,279,00029,663,232
11Jul 5, 2023 20:2121,374285,970,95459,870,00036,314,00029,663,232
12Jul 5, 2023 20:2121,606289,377,37665,897,00031,328,00029,716,480