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:50Sergey StreminSergey StreminScore: 18,842Success
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:5011,445112,063,70951,502,15002,215,936
2Oct 11, 2021 06:5011,453116,712,36451,540,38102,215,936
3Oct 11, 2021 06:5011,467131,478,83751,599,68102,211,840
4Oct 11, 2021 06:5018,736269,193,55052,043,00032,267,00029,691,904
5Oct 11, 2021 06:5018,751279,015,43552,086,00032,293,00029,630,464
6Oct 11, 2021 06:5018,798272,518,37648,472,00036,117,00029,646,848
7Oct 11, 2021 06:5018,842268,280,41053,387,00031,404,00029,564,928
8Oct 11, 2021 06:5018,891284,032,04051,834,00033,174,00029,569,024
9Oct 11, 2021 06:5018,906276,364,97148,896,00036,183,00029,499,392
10Oct 11, 2021 06:5018,925276,689,62851,929,00033,234,00029,650,944
11Oct 11, 2021 06:5018,994273,363,29252,119,00033,356,00029,728,768
12Oct 11, 2021 06:5018,997277,078,51250,884,00034,601,00029,642,752