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:16Yuriy LyfenkoYuriy LyfenkoScore: 13,645Success
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:166,609105,594,19829,739,76002,269,184
2Oct 15, 2021 19:166,61891,918,73329,779,79602,277,376
3Oct 15, 2021 19:166,62486,545,46329,808,00202,273,280
4Oct 15, 2021 19:1613,555245,227,45726,563,00034,433,00029,659,136
5Oct 15, 2021 19:1613,596246,284,74631,815,00029,367,00029,630,464
6Oct 15, 2021 19:1613,619249,520,11530,123,00031,161,00029,663,232
7Oct 15, 2021 19:1613,645248,572,95229,085,00032,317,00029,679,616
8Oct 15, 2021 19:1613,697252,919,36827,631,00034,007,00029,499,392
9Oct 15, 2021 19:1613,743254,439,22828,301,00033,541,00029,630,464
10Oct 15, 2021 19:1613,762249,504,47724,771,00037,156,00029,597,696
11Oct 15, 2021 19:1613,796247,929,74125,622,00036,462,00029,548,544
12Oct 15, 2021 19:1613,811250,033,99730,510,00031,640,00029,532,160