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 listMay 10, 2023 03:23Yuriy LyfenkoYuriy LyfenkoScore: 14,513Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 03:237,161101,734,83832,226,60102,224,128
2May 10, 2023 03:237,16999,471,98432,259,67602,220,032
3May 10, 2023 03:237,171105,490,88832,271,32702,232,320
4May 10, 2023 03:2314,460258,177,02432,535,00032,535,00029,569,024
5May 10, 2023 03:2314,496258,392,67032,080,00033,150,00029,503,488
6May 10, 2023 03:2314,512254,062,76833,188,00032,118,00029,499,392
7May 10, 2023 03:2314,513260,453,39436,152,00029,155,00029,573,120
8May 10, 2023 03:2314,525256,659,64329,711,00035,653,00029,691,904
9May 10, 2023 03:2314,549258,297,95931,680,00033,792,00029,798,400
10May 10, 2023 03:2314,579256,353,23635,785,00029,821,00029,671,424
11May 10, 2023 03:2314,588256,883,77135,703,00029,944,00029,540,352
12May 10, 2023 03:2314,641258,299,11432,402,00033,482,00029,564,928