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 9, 2024 21:21Joad NacerJoad NacerScore: 15,604Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:216,71695,001,56530,220,13102,269,184
2May 9, 2024 21:216,824107,210,02430,709,51402,281,472
3May 9, 2024 21:217,052118,715,46931,734,64702,277,376
4May 9, 2024 21:2115,451258,188,10839,894,00029,635,00029,540,352
5May 9, 2024 21:2115,567260,024,53345,033,00025,018,00029,544,448
6May 9, 2024 21:2115,600260,031,81538,999,00031,199,00029,528,064
7May 9, 2024 21:2115,604254,382,76041,654,00028,563,00029,659,136
8May 9, 2024 21:2115,613260,481,87937,751,00032,507,00029,556,736
9May 9, 2024 21:2115,616262,320,95738,329,00031,941,00029,552,640
10May 9, 2024 21:2115,651258,857,21634,705,00035,725,00029,630,464
11May 9, 2024 21:2115,921261,750,05239,802,00031,841,00029,642,752
12May 9, 2024 21:2115,922265,700,85339,082,00032,568,00029,548,544