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 10, 2021 22:31Yuriy LyfenkoYuriy LyfenkoScore: 22,093Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:3113,057126,232,36458,756,29302,248,704
2Oct 10, 2021 22:3113,063121,503,86558,784,99102,252,800
3Oct 10, 2021 22:3113,070134,612,96958,813,47402,248,704
4Oct 10, 2021 22:3121,601291,158,96762,212,00034,994,00029,667,328
5Oct 10, 2021 22:3121,615294,174,32861,279,00035,989,00029,577,216
6Oct 10, 2021 22:3121,986296,506,23968,085,00030,851,00029,786,112
7Oct 10, 2021 22:3122,093302,439,12862,014,00037,405,00029,667,328
8Oct 10, 2021 22:3122,147300,175,87568,191,00031,472,00029,683,712
9Oct 10, 2021 22:3122,247298,984,58969,227,00030,886,00029,667,328
10Oct 10, 2021 22:3122,251304,692,31660,455,00039,673,00029,708,288
11Oct 10, 2021 22:3122,376321,337,60663,179,00037,512,00029,474,816
12Oct 10, 2021 22:3122,480303,631,04464,820,00036,338,00029,671,424