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 16, 2021 07:44Ilya AniskovetsIlya AniskovetsScore: 15,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 07:448,536111,272,94838,411,93102,252,800
2Oct 16, 2021 07:448,551105,472,41438,480,70502,277,376
3Oct 16, 2021 07:448,560104,852,22638,518,85802,281,472
4Oct 16, 2021 07:4415,762264,108,47138,595,00032,336,00029,630,464
5Oct 16, 2021 07:4415,840255,824,98241,039,00030,239,00029,552,640
6Oct 16, 2021 07:4415,910258,511,53339,539,00032,058,00029,556,736
7Oct 16, 2021 07:4415,913258,035,37337,318,00034,292,00029,626,368
8Oct 16, 2021 07:4415,934267,286,26635,374,00036,331,00029,790,208
9Oct 16, 2021 07:4416,107260,474,96839,438,00033,043,00029,630,464
10Oct 16, 2021 07:4416,123263,670,48137,284,00035,269,00029,663,232
11Oct 16, 2021 07:4416,146261,546,45142,293,00030,364,00029,528,064
12Oct 16, 2021 07:4416,172270,123,11839,023,00033,749,00029,544,448