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 listOct 11, 2021 01:39Yuriy LyfenkoYuriy LyfenkoScore: 17,513Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 01:3910,104109,429,42045,469,08202,244,608
2Oct 11, 2021 01:3910,108121,745,81345,484,97902,256,896
3Oct 11, 2021 01:3910,115103,568,97245,518,13302,244,608
4Oct 11, 2021 01:3917,285265,339,57246,882,00030,899,00029,663,232
5Oct 11, 2021 01:3917,288268,132,39143,221,00034,577,00029,663,232
6Oct 11, 2021 01:3917,487270,266,99743,718,00034,974,00029,573,120
7Oct 11, 2021 01:3917,513267,435,72849,660,00029,148,00029,667,328
8Oct 11, 2021 01:3917,553269,572,87343,777,00035,211,00029,708,288
9Oct 11, 2021 01:3917,576271,122,41444,615,00034,475,00029,532,160
10Oct 11, 2021 01:3917,644266,870,86347,855,00031,541,00029,667,328
11Oct 11, 2021 01:3917,652266,084,59046,600,00032,832,00029,708,288
12Oct 11, 2021 01:3917,839270,407,72849,237,00031,040,00029,663,232