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 01:48Yuriy LyfenkoYuriy LyfenkoScore: 15,518Success
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 01:488,225107,924,58037,013,28902,256,896
2Oct 11, 2021 01:488,23395,543,07537,048,00702,248,704
3Oct 11, 2021 01:488,241109,892,12137,082,70102,252,800
4Oct 11, 2021 01:4815,437242,669,45734,270,00035,196,00027,594,752
5Oct 11, 2021 01:4815,448247,709,03440,189,00029,327,00027,611,136
6Oct 11, 2021 01:4815,475258,674,58932,498,00037,141,00029,638,656
7Oct 11, 2021 01:4815,518260,240,86035,408,00034,424,00029,577,216
8Oct 11, 2021 01:4815,521268,340,84633,525,00036,319,00029,544,448
9Oct 11, 2021 01:4815,522258,637,18737,532,00032,319,00029,667,328
10Oct 11, 2021 01:4815,556257,134,38434,055,00035,947,00029,667,328
11Oct 11, 2021 01:4815,618261,535,51934,164,00036,116,00029,708,288
12Oct 11, 2021 01:4815,629254,426,44134,669,00035,660,00029,519,872