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 10, 2021 22:30Yuriy LyfenkoYuriy LyfenkoScore: 20,512Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:3012,962117,209,85658,330,96302,248,704
2Oct 10, 2021 22:3012,964137,331,75958,339,25502,248,704
3Oct 10, 2021 22:3012,979125,342,91758,405,34802,252,800
4Oct 10, 2021 22:3020,294279,829,86658,205,00033,117,00029,626,368
5Oct 10, 2021 22:3020,396286,162,00165,719,00026,061,00029,593,600
6Oct 10, 2021 22:3020,437276,075,04265,374,00026,593,00029,671,424
7Oct 10, 2021 22:3020,512280,572,71159,195,00033,109,00029,655,040
8Oct 10, 2021 22:3020,572286,777,46956,519,00036,055,00029,642,752
9Oct 10, 2021 22:3020,622284,278,14061,866,00030,933,00029,667,328
10Oct 10, 2021 22:3020,627285,436,92157,888,00034,932,00029,667,328
11Oct 10, 2021 22:3020,637281,814,02961,563,00031,303,00029,544,448
12Oct 10, 2021 22:3020,776297,891,54968,101,00025,393,00029,523,968