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 7, 2023 09:25Bernard TeoBernard TeoScore: 13,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 7, 2023 09:254,56293,465,19720,528,67502,260,992
2May 7, 2023 09:254,60884,125,22220,737,11902,269,184
3May 7, 2023 09:254,622103,208,15820,797,20902,269,184
4May 7, 2023 09:2513,344250,635,45322,123,00037,925,00029,675,520
5May 7, 2023 09:2513,377243,170,38926,644,00033,552,00029,687,808
6May 7, 2023 09:2513,477249,417,28333,549,00027,097,00029,556,736
7May 7, 2023 09:2513,604246,368,81425,900,00035,319,00029,536,256
8May 7, 2023 09:2513,692256,658,74432,275,00029,341,00029,679,616
9May 7, 2023 09:2513,924263,632,78927,847,00034,809,00029,523,968
10May 7, 2023 09:2513,945265,593,61424,653,00038,101,00029,687,808
11May 7, 2023 09:2514,123263,171,75827,732,00035,820,00029,683,712
12May 7, 2023 09:2514,124266,545,15827,541,00036,015,00029,675,520