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 8, 2023 22:19Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 22:1800000Error: No answer to stdout. Died or killed?stderr
2May 8, 2023 22:197,607107,003,46034,232,62202,228,224
3May 8, 2023 22:197,613102,479,27434,260,10102,228,224
4May 8, 2023 22:197,616116,815,82734,272,51002,232,320
5May 8, 2023 22:1914,298263,167,96531,165,00033,176,00029,650,944
6May 8, 2023 22:1914,384254,361,53833,407,00031,319,00029,655,040
7May 8, 2023 22:1914,388255,682,10032,373,00032,373,00029,659,136
8May 8, 2023 22:1914,401259,272,33532,916,00031,888,00029,724,672
9May 8, 2023 22:1914,487259,256,45231,608,00033,583,00029,650,944
10May 8, 2023 22:1914,492257,822,70733,126,00032,090,00029,528,064
11May 8, 2023 22:1914,527259,242,16430,246,00035,125,00029,691,904
12May 8, 2023 22:1914,582255,065,93632,809,00032,809,00029,691,904
13May 8, 2023 22:1914,758261,457,47134,893,00031,516,00029,528,064