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:19Andrey TsvetkovAndrey TsvetkovScore: 25,791Success
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:1918,191142,511,73781,857,59502,244,608
2Oct 10, 2021 17:1918,197140,955,46781,887,57102,236,416
3Oct 10, 2021 17:1918,222143,884,06581,998,23502,236,416
4Oct 10, 2021 17:1925,692309,131,32085,915,00029,699,00029,564,928
5Oct 10, 2021 17:1925,763302,607,18576,973,00038,962,00029,646,848
6Oct 10, 2021 17:1925,778305,656,29681,705,00034,296,00029,503,488
7Oct 10, 2021 17:1925,791301,680,55287,857,00028,201,00029,638,656
8Oct 10, 2021 17:1925,792302,309,16785,464,00030,598,00029,736,960
9Oct 10, 2021 17:1925,846308,032,55787,232,00029,077,00029,675,520
10Oct 10, 2021 17:1925,855315,996,52785,182,00031,164,00029,573,120
11Oct 10, 2021 17:1925,954314,548,63283,718,00033,073,00029,638,656
12Oct 10, 2021 17:1925,964309,598,74290,133,00026,706,00029,736,960