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:26Yuriy LyfenkoYuriy LyfenkoScore: 14,660Success
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:267,338110,080,97933,020,67102,215,936
2May 10, 2023 03:267,34296,639,81933,040,84702,220,032
3May 10, 2023 03:267,35495,698,16333,093,03302,228,224
4May 10, 2023 03:2614,536257,129,50132,705,00032,705,00029,659,136
5May 10, 2023 03:2614,583257,396,76933,870,00031,753,00029,564,928
6May 10, 2023 03:2614,659251,452,44830,073,00035,894,00029,675,520
7May 10, 2023 03:2614,660251,480,98931,462,00034,507,00029,704,192
8May 10, 2023 03:2614,720255,595,66733,121,00033,121,00029,564,928
9May 10, 2023 03:2614,720253,247,52433,121,00033,121,00029,655,040
10May 10, 2023 03:2614,741257,862,94033,167,00033,167,00029,560,832
11May 10, 2023 03:2614,763257,390,62032,706,00033,728,00029,560,832
12May 10, 2023 03:2614,827257,444,80436,393,00030,327,00029,769,728