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 10, 2021 11:45Andrey TsvetkovAndrey TsvetkovScore: 105,585Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 11:4538,923236,934,947175,154,62402,191,360
2Oct 10, 2021 11:4539,007234,365,046175,529,58102,187,264
3Oct 10, 2021 11:4539,203236,270,264176,413,06702,310,144
4Oct 10, 2021 11:4595,916485,889,552431,621,41802,211,840
5Oct 10, 2021 11:4595,982487,234,696431,920,45002,195,456
6Oct 10, 2021 11:4596,038493,960,272432,169,19502,211,840
7Oct 10, 2021 11:45105,502654,583,565424,146,00050,614,00029,679,616
8Oct 10, 2021 11:45105,585661,711,838407,984,00067,149,00029,503,488
9Oct 10, 2021 11:45105,620658,466,346412,989,00062,300,00029,544,448
10Oct 10, 2021 11:45105,804661,316,187422,201,00053,919,00029,630,464
11Oct 10, 2021 11:45105,838658,116,309418,722,00057,549,00029,659,136
12Oct 10, 2021 11:45106,054662,055,317430,555,00046,686,00029,712,384
13Oct 10, 2021 11:45106,093662,380,230409,649,00067,769,00029,741,056
14Oct 10, 2021 11:45106,219663,185,901414,875,00063,110,00029,593,600
15Oct 10, 2021 11:45106,367662,962,524411,473,00067,179,00029,696,000