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 19:41Yurkov AlekseyYurkov AlekseyScore: 21,189Success
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 19:4114,024122,750,41363,105,99602,269,184
2Oct 11, 2021 19:4114,042125,073,17163,188,14002,273,280
3Oct 11, 2021 19:4114,049129,979,87963,219,21202,277,376
4Oct 11, 2021 19:4121,056287,299,67162,473,00032,277,00029,630,464
5Oct 11, 2021 19:4121,117283,786,13359,645,00035,383,00029,663,232
6Oct 11, 2021 19:4121,149287,830,18560,748,00034,423,00029,753,344
7Oct 11, 2021 19:4121,189284,099,29066,095,00029,255,00029,630,464
8Oct 11, 2021 19:4121,225285,427,02859,318,00036,194,00029,503,488
9Oct 11, 2021 19:4121,226285,663,78757,310,00038,207,00029,724,672
10Oct 11, 2021 19:4121,274289,720,77961,763,00033,969,00029,663,232
11Oct 11, 2021 19:4121,361283,587,30659,459,00036,666,00029,663,232
12Oct 11, 2021 19:4121,447293,532,21265,803,00030,708,00029,663,232