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 24, 2024 21:06Andrey LikhachevAndrey LikhachevScore: 111,499Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2024 21:06104,187525,631,973468,841,40602,256,896
2Jun 24, 2024 21:06104,267525,089,432469,203,32302,252,800
3Jun 24, 2024 21:06104,357531,546,019469,604,49502,252,800
4Jun 24, 2024 21:06111,350684,002,325444,254,00056,823,00029,732,864
5Jun 24, 2024 21:06111,441687,045,859449,744,00051,740,00029,786,112
6Jun 24, 2024 21:06111,489685,129,294451,326,00050,375,00029,724,672
7Jun 24, 2024 21:06111,499686,505,318442,659,00059,088,00029,528,064
8Jun 24, 2024 21:06111,501693,145,977448,568,00053,185,00029,716,480
9Jun 24, 2024 21:06111,614688,599,373448,898,00053,365,00029,601,792
10Jun 24, 2024 21:06111,636689,704,611457,068,00045,295,00029,642,752
11Jun 24, 2024 21:06111,656686,846,561460,993,00041,459,00029,523,968
12Jun 24, 2024 21:06111,775687,492,799448,226,00054,760,00029,556,736