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 listMay 10, 2023 03:08Yuriy LyfenkoYuriy LyfenkoScore: 17,622Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 03:0810,260113,931,89846,169,56602,240,512
2May 10, 2023 03:0810,269110,029,36046,211,83002,240,512
3May 10, 2023 03:0810,270122,891,89246,212,77102,244,608
4May 10, 2023 03:0817,461271,974,56847,783,00030,793,00029,638,656
5May 10, 2023 03:0817,531266,440,53746,907,00031,982,00029,638,656
6May 10, 2023 03:0817,606270,818,02445,128,00034,097,00029,605,888
7May 10, 2023 03:0817,622269,227,83149,562,00029,737,00029,638,656
8May 10, 2023 03:0817,629270,593,53545,928,00033,402,00029,638,656
9May 10, 2023 03:0817,675271,197,21445,306,00034,231,00029,605,888
10May 10, 2023 03:0817,683267,386,45947,962,00031,611,00029,634,560
11May 10, 2023 03:0817,725267,548,07046,016,00033,745,00029,638,656
12May 10, 2023 03:0817,729267,494,56850,972,00028,810,00029,638,656