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 15, 2021 14:49Yuriy LyfenkoYuriy LyfenkoScore: 15,730Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 14:498,43192,175,48937,938,60502,260,992
2Oct 15, 2021 14:498,439101,453,91437,975,28002,248,704
3Oct 15, 2021 14:498,44599,075,57238,000,81302,240,512
4Oct 15, 2021 14:4915,623256,304,28338,719,00031,586,00029,544,448
5Oct 15, 2021 14:4915,711261,843,67336,802,00033,897,00029,708,288
6Oct 15, 2021 14:4915,723255,950,66738,499,00032,256,00029,679,616
7Oct 15, 2021 14:4915,730262,632,63037,886,00032,901,00029,675,520
8Oct 15, 2021 14:4915,826257,843,22237,586,00033,630,00029,655,040
9Oct 15, 2021 14:4915,888261,554,18935,749,00035,749,00029,708,288
10Oct 15, 2021 14:4915,893258,839,20533,078,00038,442,00029,667,328
11Oct 15, 2021 14:4915,901264,419,98840,732,00030,824,00029,446,144
12Oct 15, 2021 14:4915,925265,800,64140,951,00030,713,00029,667,328