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 8, 2024 12:56джулисджулисScore: 111,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2024 12:56104,305532,007,134469,370,66802,252,800
2Jun 8, 2024 12:56104,475531,606,700470,136,43602,269,184
3Jun 8, 2024 12:56104,497530,881,807470,237,68102,252,800
4Jun 8, 2024 12:56111,359688,093,533441,680,00059,437,00029,659,136
5Jun 8, 2024 12:56111,414685,244,663449,736,00051,625,00029,720,576
6Jun 8, 2024 12:56111,475692,188,488445,565,00056,071,00029,659,136
7Jun 8, 2024 12:56111,527690,626,877452,405,00049,465,00029,564,928
8Jun 8, 2024 12:56111,563691,821,873446,031,00056,003,00029,642,752
9Jun 8, 2024 12:56111,581698,688,028455,199,00046,917,00029,724,672
10Jun 8, 2024 12:56111,641685,464,972460,436,00041,948,00029,659,136
11Jun 8, 2024 12:56111,752687,839,569453,092,00049,790,00029,724,672
12Jun 8, 2024 12:56112,249698,378,824443,715,00061,407,00029,532,160