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 listJul 18, 2023 21:17gchebanovgchebanovScore: 16,227Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 21:178,931104,261,82740,187,60902,265,088
2Jul 18, 2023 21:178,936111,765,36240,209,81502,260,992
3Jul 18, 2023 21:178,936105,749,49840,213,55202,252,800
4Jul 18, 2023 21:1716,018261,284,93540,882,00031,199,00029,663,232
5Jul 18, 2023 21:1716,122257,060,53534,897,00037,652,00029,593,600
6Jul 18, 2023 21:1716,222254,726,22537,000,00036,000,00029,487,104
7Jul 18, 2023 21:1716,227258,941,62637,498,00035,524,00029,626,368
8Jul 18, 2023 21:1716,248265,139,15238,648,00034,469,00029,593,600
9Jul 18, 2023 21:1716,252259,996,11840,278,00032,858,00029,626,368
10Jul 18, 2023 21:1716,277259,348,97436,624,00036,624,00029,728,768
11Jul 18, 2023 21:1716,415267,454,43838,411,00035,457,00029,659,136
12Jul 18, 2023 21:1716,465265,596,65737,553,00036,538,00029,536,256