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 listOct 12, 2021 22:20Yurkov AlekseyYurkov AlekseyScore: 20,013Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 22:2012,258114,020,55255,159,77602,265,088
2Oct 12, 2021 22:2012,265113,952,84655,193,51802,277,376
3Oct 12, 2021 22:2012,270124,484,96455,215,34802,273,280
4Oct 12, 2021 22:2019,860272,830,15355,229,00034,141,00029,663,232
5Oct 12, 2021 22:2019,962278,636,25057,450,00032,381,00029,560,832
6Oct 12, 2021 22:2019,972280,123,83058,882,00030,990,00029,663,232
7Oct 12, 2021 22:2020,013273,446,06459,332,00030,725,00029,667,328
8Oct 12, 2021 22:2020,052281,179,09157,422,00032,812,00029,634,560
9Oct 12, 2021 22:2020,052278,483,92556,397,00033,838,00029,634,560
10Oct 12, 2021 22:2020,135278,019,18655,994,00034,614,00029,630,464
11Oct 12, 2021 22:2020,139275,593,11757,957,00032,667,00029,663,232
12Oct 12, 2021 22:2020,141283,971,61859,017,00031,616,00029,499,392