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:13Jörn HorstmannJörn HorstmannScore: 23,499Success
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:1316,142148,510,05172,639,44502,207,744
2Jul 5, 2023 20:1316,160139,411,73272,719,57702,215,936
3Jul 5, 2023 20:1316,232128,720,75373,044,45402,211,840
4Jul 5, 2023 20:1323,445298,766,19276,730,00028,773,00029,564,928
5Jul 5, 2023 20:1323,455295,380,71278,346,00027,203,00029,638,656
6Jul 5, 2023 20:1323,471297,587,60468,511,00037,110,00029,696,000
7Jul 5, 2023 20:1323,499299,284,63674,644,00031,101,00029,642,752
8Jul 5, 2023 20:1323,522299,041,73072,583,00033,267,00029,642,752
9Jul 5, 2023 20:1323,534295,089,43469,317,00036,584,00029,564,928
10Jul 5, 2023 20:1323,536300,687,03077,315,00028,595,00029,569,024
11Jul 5, 2023 20:1323,561299,417,59369,701,00036,323,00029,663,232
12Jul 5, 2023 20:1323,666292,976,65475,920,00030,578,00029,650,944