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 11, 2021 09:43tirochkintirochkinScore: 45,218Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 09:4338,102244,704,950171,459,63102,228,224
2Oct 11, 2021 09:4338,185224,876,618171,832,08202,224,128
3Oct 11, 2021 09:4338,237234,628,281172,067,31302,236,416
4Oct 11, 2021 09:4345,096390,293,617156,721,00046,212,00029,564,928
5Oct 11, 2021 09:4345,134383,977,437156,708,00046,394,00029,564,928
6Oct 11, 2021 09:4345,146382,925,124151,373,00051,785,00029,597,696
7Oct 11, 2021 09:4345,218384,871,850164,471,00039,009,00029,597,696
8Oct 11, 2021 09:4345,229386,337,372155,119,00048,412,00029,569,024
9Oct 11, 2021 09:4345,260384,951,188143,173,00060,495,00029,556,736
10Oct 11, 2021 09:4345,446389,906,598152,883,00051,622,00029,548,544
11Oct 11, 2021 09:4345,471389,655,665152,152,00052,466,00029,790,208
12Oct 11, 2021 09:4345,757399,357,728153,422,00052,486,00029,626,368