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 11, 2021 06:49Sergey StreminSergey StreminScore: 19,464Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 06:4912,224130,628,93655,007,84002,220,032
2Oct 11, 2021 06:4912,253119,967,71355,138,82602,211,840
3Oct 11, 2021 06:4912,256109,205,47555,150,89502,215,936
4Oct 11, 2021 06:4919,286273,880,71558,226,00028,563,00029,696,000
5Oct 11, 2021 06:4919,305281,314,62249,101,00037,770,00029,495,296
6Oct 11, 2021 06:4919,431278,289,12052,465,00034,976,00029,659,136
7Oct 11, 2021 06:4919,464281,355,97656,612,00030,976,00029,679,616
8Oct 11, 2021 06:4919,474282,223,24459,180,00028,452,00029,552,640
9Oct 11, 2021 06:4919,517279,618,82257,837,00029,989,00029,667,328
10Oct 11, 2021 06:4919,525283,751,13858,946,00028,916,00029,589,504
11Oct 11, 2021 06:4919,552271,459,39956,868,00031,116,00029,700,096
12Oct 11, 2021 06:4919,590280,773,44554,967,00033,187,00029,642,752