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:05Yurkov AlekseyYurkov AlekseyScore: 24,074Success
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:0515,192128,824,21168,365,57602,273,280
2Oct 10, 2021 22:0515,197122,655,25768,384,81502,269,184
3Oct 10, 2021 22:0515,197139,487,86068,388,06902,269,184
4Oct 10, 2021 22:0523,750298,859,19076,648,00030,227,00029,548,544
5Oct 10, 2021 22:0523,915301,039,92570,365,00037,252,00029,630,464
6Oct 10, 2021 22:0524,029306,803,96670,138,00037,991,00029,597,696
7Oct 10, 2021 22:0524,074305,065,15671,160,00037,173,00029,732,864
8Oct 10, 2021 22:0524,084313,387,02368,401,00039,975,00029,519,872
9Oct 10, 2021 22:0524,102312,767,54768,598,00039,861,00029,552,640
10Oct 10, 2021 22:0524,173308,486,12276,588,00032,189,00029,630,464
11Oct 10, 2021 22:0524,298308,599,64070,017,00039,325,00029,728,768
12Oct 10, 2021 22:0524,346313,798,01167,341,00042,214,00029,552,640