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 16, 2021 07:51Ilya AniskovetsIlya AniskovetsScore: 16,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 07:517,22488,119,21132,508,74502,273,280
2Oct 16, 2021 07:517,27994,863,12732,755,58402,269,184
3Oct 16, 2021 07:517,32398,248,99732,953,14902,277,376
4Oct 16, 2021 07:5116,669264,107,53136,613,00038,399,00029,663,232
5Oct 16, 2021 07:5116,694265,103,64339,538,00035,584,00029,728,768
6Oct 16, 2021 07:5116,737264,222,29543,038,00032,279,00029,544,448
7Oct 16, 2021 07:5116,770263,159,77942,384,00033,080,00029,642,752
8Oct 16, 2021 07:5116,780266,504,42140,271,00035,237,00029,556,736
9Oct 16, 2021 07:5116,811262,691,47143,684,00031,964,00029,548,544
10Oct 16, 2021 07:5116,826264,044,37743,895,00031,823,00029,577,216
11Oct 16, 2021 07:5116,872266,609,38844,470,00031,454,00029,630,464
12Oct 16, 2021 07:5116,887262,717,73239,439,00036,553,00029,495,296