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 14, 2021 21:37Ilya AniskovetsIlya AniskovetsScore: 18,730Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2021 21:3711,328108,488,47650,975,37002,265,088
2Oct 14, 2021 21:3711,332117,545,10150,991,97302,265,088
3Oct 14, 2021 21:3711,415123,627,33451,366,51902,273,280
4Oct 14, 2021 21:3718,458268,886,97246,250,00036,811,00029,626,368
5Oct 14, 2021 21:3718,482264,424,71053,623,00029,547,00029,663,232
6Oct 14, 2021 21:3718,632269,542,83249,499,00034,346,00029,544,448
7Oct 14, 2021 21:3718,730271,997,97657,729,00026,555,00029,630,464
8Oct 14, 2021 21:3718,823279,494,01350,615,00034,088,00029,597,696
9Oct 14, 2021 21:3718,842277,751,81360,214,00024,577,00029,499,392
10Oct 14, 2021 21:3718,869276,312,73152,667,00032,245,00029,728,768
11Oct 14, 2021 21:3718,993272,883,01651,073,00034,396,00029,499,392
12Oct 14, 2021 21:3719,097275,778,87252,636,00033,300,00029,630,464