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 listAug 31, 2024 22:03Yuriy 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
1Aug 31, 2024 22:0200000Error: No answer to stdout. Died or killed?stderr
2Aug 31, 2024 22:0312,917251,282,73025,495,00032,633,00029,454,336
3Aug 31, 2024 22:0313,045243,984,50128,798,00029,905,00029,491,200
4Aug 31, 2024 22:0313,051248,999,10829,941,00028,789,00029,659,136
5Aug 31, 2024 22:0313,137243,556,87331,368,00027,748,00029,753,344
6Aug 31, 2024 22:0313,194250,266,87625,592,00033,782,00029,728,768
7Aug 31, 2024 22:0313,204240,703,42223,958,00035,458,00029,544,448
8Aug 31, 2024 22:0313,228250,673,44929,764,00029,764,00029,597,696
9Aug 31, 2024 22:0313,250247,627,57924,673,00034,954,00029,552,640
10Aug 31, 2024 22:0313,265245,887,59725,867,00033,826,00029,499,392
11Aug 31, 2024 22:0313,277252,942,21624,303,00035,442,00029,712,384
12Aug 31, 2024 22:0313,318245,723,51020,547,00039,382,00029,663,232
13Aug 31, 2024 22:0313,367247,359,25531,329,00028,823,00029,630,464