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 29, 2024 17:41AnSaAnSaScore: 22,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2024 17:4113,534122,035,51760,900,80302,273,280
2Jun 29, 2024 17:4113,554134,745,31260,994,12702,277,376
3Jun 29, 2024 17:4113,557120,149,08561,004,65702,273,280
4Jun 29, 2024 17:4122,029292,761,15766,087,00033,043,00029,556,736
5Jun 29, 2024 17:4122,654299,807,49269,282,00032,661,00029,564,928
6Jun 29, 2024 17:4122,714301,070,57059,009,00043,203,00029,495,296
7Jun 29, 2024 17:4122,720299,780,48774,260,00027,982,00029,630,464
8Jun 29, 2024 17:4122,738298,465,51368,512,00033,811,00029,581,312
9Jun 29, 2024 17:4122,780306,136,69365,823,00036,688,00029,646,848
10Jun 29, 2024 17:4122,817308,095,88862,803,00039,875,00029,597,696
11Jun 29, 2024 17:4122,850304,358,49564,113,00038,710,00029,597,696
12Jun 29, 2024 17:4122,944305,591,82962,357,00040,890,00029,560,832