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 listNov 8, 2021 12:11Ilya AniskovetsIlya AniskovetsScore: 15,395Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2021 12:118,318106,872,57737,430,19802,244,608
2Nov 8, 2021 12:118,37896,040,80937,699,74902,244,608
3Nov 8, 2021 12:118,48796,732,08238,191,42802,232,320
4Nov 8, 2021 12:1115,371254,481,73740,162,00029,006,00029,700,096
5Nov 8, 2021 12:1115,374263,831,58545,327,00023,856,00029,773,824
6Nov 8, 2021 12:1115,375251,695,11040,173,00029,014,00029,704,192
7Nov 8, 2021 12:1115,395264,505,44632,329,00036,948,00029,741,056
8Nov 8, 2021 12:1115,414254,916,61337,833,00031,528,00029,650,944
9Nov 8, 2021 12:1115,446254,760,85437,346,00032,159,00029,519,872
10Nov 8, 2021 12:1115,520254,537,40535,947,00033,893,00029,708,288
11Nov 8, 2021 12:1115,572261,613,94732,701,00037,373,00029,732,864
12Nov 8, 2021 12:1115,596263,566,44736,122,00034,058,00029,720,576