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 listJun 12, 2023 21:03Victor MuñozVictor MuñozScore: 11,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 21:034,76676,854,47521,445,74902,277,376
2Jun 12, 2023 21:034,76898,135,02921,456,28902,260,992
3Jun 12, 2023 21:034,84791,453,31921,810,65502,273,280
4Jun 12, 2023 21:0311,144235,942,07016,005,00034,144,00029,593,600
5Jun 12, 2023 21:0311,179235,263,66519,436,00030,869,00029,626,368
6Jun 12, 2023 21:0311,239239,737,18217,591,00032,984,00029,667,328
7Jun 12, 2023 21:0311,251239,971,49315,369,00035,259,00029,659,136
8Jun 12, 2023 21:0311,322236,015,99114,419,00036,528,00029,544,448
9Jun 12, 2023 21:0311,330238,517,40724,077,00026,910,00029,540,352
10Jun 12, 2023 21:0311,333245,865,38414,999,00035,999,00029,614,080
11Jun 12, 2023 21:0311,378249,279,09817,067,00034,134,00029,630,464
12Jun 12, 2023 21:0311,660246,889,55521,525,00030,943,00029,548,544