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:27Yuriy LyfenkoYuriy LyfenkoScore: 14,912Success
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:277,64494,652,39534,396,54902,228,224
2May 10, 2023 03:277,652102,488,24334,433,79602,224,128
3May 10, 2023 03:277,670105,772,07434,514,05802,232,320
4May 10, 2023 03:2714,874257,758,19931,968,00034,965,00029,667,328
5May 10, 2023 03:2714,894260,271,00332,526,00034,497,00029,655,040
6May 10, 2023 03:2714,902255,431,77937,508,00029,551,00029,728,768
7May 10, 2023 03:2714,912257,470,68236,395,00030,709,00029,540,352
8May 10, 2023 03:2714,924255,512,35632,119,00035,039,00029,700,096
9May 10, 2023 03:2715,019259,995,15334,312,00033,273,00029,560,832
10May 10, 2023 03:2715,074265,506,29338,594,00029,238,00029,552,640
11May 10, 2023 03:2715,117262,187,97741,572,00026,455,00029,736,960
12May 10, 2023 03:2715,173260,129,24037,553,00030,725,00029,769,728