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 22:35Yuriy LyfenkoYuriy LyfenkoScore: 20,491Success
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 22:3513,352130,024,81560,081,78502,256,896
2Oct 10, 2021 22:3513,375117,012,98760,185,49202,260,992
3Oct 10, 2021 22:3513,385118,032,49260,231,53102,248,704
4Oct 10, 2021 22:3520,291282,199,36160,532,00030,779,00029,659,136
5Oct 10, 2021 22:3520,379292,684,16159,457,00032,248,00029,671,424
6Oct 10, 2021 22:3520,466285,469,85362,457,00029,640,00029,675,520
7Oct 10, 2021 22:3520,491276,723,91062,920,00029,290,00029,663,232
8Oct 10, 2021 22:3520,502285,165,11163,293,00028,964,00029,675,520
9Oct 10, 2021 22:3520,502286,883,81959,818,00032,443,00029,667,328
10Oct 10, 2021 22:3520,569281,813,79762,810,00029,752,00029,663,232
11Oct 10, 2021 22:3520,596291,292,55057,186,00035,495,00029,741,056
12Oct 10, 2021 22:3520,736289,488,60860,134,00033,177,00029,499,392