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 listOct 10, 2021 17:06Andrey TsvetkovAndrey TsvetkovScore: 26,249Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 17:0618,566140,154,38783,545,60902,240,512
2Oct 10, 2021 17:0618,590148,215,20983,655,65102,248,704
3Oct 10, 2021 17:0618,613160,110,50983,758,57802,244,608
4Oct 10, 2021 17:0626,161307,280,93684,966,00032,758,00029,503,488
5Oct 10, 2021 17:0626,203308,358,05390,365,00027,550,00029,728,768
6Oct 10, 2021 17:0626,229303,932,17880,963,00037,067,00029,581,312
7Oct 10, 2021 17:0626,249308,691,76285,717,00032,405,00029,577,216
8Oct 10, 2021 17:0626,257304,724,08679,732,00038,425,00029,642,752
9Oct 10, 2021 17:0626,310312,262,64478,310,00040,087,00029,696,000
10Oct 10, 2021 17:0626,333307,461,47881,889,00036,609,00028,848,128
11Oct 10, 2021 17:0626,375314,926,73486,414,00032,275,00029,732,864
12Oct 10, 2021 17:0626,470305,693,47785,679,00033,436,00029,667,328