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 10, 2023 01:09Yuriy LyfenkoYuriy LyfenkoScore: 10,333Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 01:093,03579,833,36913,658,53702,244,608
2May 10, 2023 01:093,04457,998,30313,696,40602,248,704
3May 10, 2023 01:093,07065,982,96113,814,27502,244,608
4May 10, 2023 01:0910,179233,706,93714,251,00031,556,00029,679,616
5May 10, 2023 01:0910,225238,613,14813,911,00032,103,00029,741,056
6May 10, 2023 01:0910,315240,182,57618,052,00028,367,00029,544,448
7May 10, 2023 01:0910,333234,726,78812,764,00033,734,00029,708,288
8May 10, 2023 01:0910,333236,883,97514,743,00031,755,00029,659,136
9May 10, 2023 01:0910,364239,260,74113,473,00033,164,00029,679,616
10May 10, 2023 01:0910,372237,774,99014,446,00032,226,00029,663,232
11May 10, 2023 01:0910,390239,698,90113,213,00033,540,00029,736,960
12May 10, 2023 01:0910,425237,788,20012,238,00034,675,00029,741,056