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 15, 2021 19:08Yuriy LyfenkoYuriy LyfenkoScore: 13,939Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:086,80988,609,79930,639,45102,256,896
2Oct 15, 2021 19:086,817104,183,83630,677,44002,244,608
3Oct 15, 2021 19:086,86295,181,19130,877,81902,260,992
4Oct 15, 2021 19:0813,736247,018,47831,449,00030,365,00029,671,424
5Oct 15, 2021 19:0813,804251,739,77028,146,00033,970,00029,675,520
6Oct 15, 2021 19:0813,824249,265,00931,104,00031,104,00028,884,992
7Oct 15, 2021 19:0813,939255,367,59826,611,00036,115,00029,544,448
8Oct 15, 2021 19:0814,016256,138,02534,510,00028,560,00029,708,288
9Oct 15, 2021 19:0814,053262,977,92031,084,00032,156,00029,577,216
10Oct 15, 2021 19:0814,066258,932,26731,649,00031,649,00029,708,288
11Oct 15, 2021 19:0814,083268,088,86728,166,00035,208,00029,708,288
12Oct 15, 2021 19:0814,103253,517,94828,314,00035,149,00029,675,520