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 15, 2021 19:26Yuriy LyfenkoYuriy LyfenkoScore: 13,243Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:265,98991,354,35626,951,77002,252,800
2Oct 15, 2021 19:265,99193,883,53026,961,25702,256,896
3Oct 15, 2021 19:265,99496,006,42326,972,34602,248,704
4Oct 15, 2021 19:2613,192243,910,78228,622,00030,742,00029,544,448
5Oct 15, 2021 19:2613,231250,815,49129,209,00030,332,00029,667,328
6Oct 15, 2021 19:2613,239250,179,53628,724,00030,852,00029,544,448
7Oct 15, 2021 19:2613,243244,896,74325,687,00033,907,00029,528,064
8Oct 15, 2021 19:2613,248242,597,04328,181,00031,433,00029,708,288
9Oct 15, 2021 19:2613,258250,380,96427,213,00032,446,00029,663,232
10Oct 15, 2021 19:2613,273252,397,96331,693,00028,036,00029,650,944
11Oct 15, 2021 19:2613,416252,031,83226,478,00033,892,00029,671,424
12Oct 15, 2021 19:2613,422244,807,15428,490,00031,909,00029,609,984