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 listDec 12, 2024 17:48Yuriy LyfenkoYuriy LyfenkoScore: 6,291Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 17:486,21656,086,86212,988,00014,986,0002,260,992
2Dec 12, 2024 17:486,23452,717,71812,023,00016,030,0002,514,944
3Dec 12, 2024 17:486,23552,911,11412,025,00016,033,0002,260,992
4Dec 12, 2024 17:486,28554,188,66913,131,00015,151,0002,514,944
5Dec 12, 2024 17:486,29154,027,81812,132,00016,176,0002,396,160
6Dec 12, 2024 17:486,30352,054,44012,156,00016,209,0002,396,160
7Dec 12, 2024 17:486,33051,198,51113,226,00015,261,0002,400,256
8Dec 12, 2024 17:486,35049,069,62413,268,00015,309,0002,387,968
9Dec 12, 2024 17:486,41355,066,12712,937,00015,923,0002,396,160