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:04Yuriy LyfenkoYuriy LyfenkoScore: 13,243Success
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:046,04394,258,80527,195,37502,252,800
2Oct 15, 2021 19:046,05090,198,37627,225,41202,252,800
3Oct 15, 2021 19:046,056105,000,46827,253,94802,252,800
4Oct 15, 2021 19:0413,117249,604,09326,830,00032,196,00029,671,424
5Oct 15, 2021 19:0413,153252,206,05628,499,00030,691,00029,708,288
6Oct 15, 2021 19:0413,218255,709,86730,883,00028,596,00029,503,488
7Oct 15, 2021 19:0413,243257,739,51627,668,00031,925,00029,655,040
8Oct 15, 2021 19:0413,287245,811,83224,913,00034,878,00029,667,328
9Oct 15, 2021 19:0413,301250,789,88227,207,00032,649,00029,732,864
10Oct 15, 2021 19:0413,380248,748,42525,250,00034,961,00029,544,448
11Oct 15, 2021 19:0413,411252,773,52926,281,00034,068,00029,659,136
12Oct 15, 2021 19:0413,420253,832,16125,163,00035,229,00029,708,288