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 listMar 23, 2026 07:48Dominique GarmierDominique GarmierScore: 5,778Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 07:465,76750,784,84124,954,000998,0002,523,136
2Mar 23, 2026 07:465,76852,582,57123,962,0001,996,0002,265,088
3Mar 23, 2026 07:485,76955,404,79323,965,0001,997,0002,510,848
4Mar 23, 2026 07:485,77053,385,96423,967,0001,997,0002,265,088
5Mar 23, 2026 07:465,77251,522,59024,976,000999,0002,523,136
6Mar 23, 2026 07:465,77452,858,03324,985,000999,0002,265,088
7Mar 23, 2026 07:485,77652,521,08824,995,000999,0002,523,136
8Mar 23, 2026 07:465,77759,928,45623,996,0001,999,0002,293,760
9Mar 23, 2026 07:465,77855,538,01025,001,0001,000,0002,293,760
10Mar 23, 2026 07:485,77848,668,50924,000,0002,000,0002,379,776
11Mar 23, 2026 07:485,77949,349,63624,005,0002,000,0002,359,296
12Mar 23, 2026 07:485,78756,721,90325,039,0001,001,0002,523,136
13Mar 23, 2026 07:465,79053,692,84724,050,0002,004,0002,519,040
14Mar 23, 2026 07:465,79853,032,17625,089,0001,003,0002,523,136
15Mar 23, 2026 07:485,80454,670,51224,110,0002,009,0002,293,760
16Mar 23, 2026 07:485,80454,111,40725,115,0001,004,0002,527,232
17Mar 23, 2026 07:465,89254,431,01325,497,0001,019,0002,293,760
18Mar 23, 2026 07:485,89851,072,13025,522,0001,020,0002,519,040