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 21, 2023 09:56Bernard TeoBernard TeoScore: 14,544Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 09:565,87984,519,65226,454,61702,281,472
2May 21, 2023 09:565,94296,498,98426,738,10802,273,280
3May 21, 2023 09:565,95482,267,70326,794,95402,260,992
4May 21, 2023 09:5614,374253,980,87135,373,00029,309,00029,638,656
5May 21, 2023 09:5614,449251,600,20427,585,00037,436,00029,564,928
6May 21, 2023 09:5614,537247,314,16029,735,00035,683,00029,601,792
7May 21, 2023 09:5614,544261,198,40639,477,00025,972,00029,564,928
8May 21, 2023 09:5614,656262,057,58031,453,00034,497,00029,605,888
9May 21, 2023 09:5614,776266,164,13733,247,00033,247,00029,503,488
10May 21, 2023 09:5614,952263,891,53924,992,00042,294,00029,564,928
11May 21, 2023 09:5615,119270,342,45438,195,00029,840,00029,634,560
12May 21, 2023 09:5615,216263,419,63328,831,00039,643,00029,503,488