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 16, 2021 10:27Ilya AniskovetsIlya AniskovetsScore: 14,610Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 10:277,116100,681,75932,023,41502,273,280
2Oct 16, 2021 10:277,141112,952,89632,133,45002,256,896
3Oct 16, 2021 10:277,21687,917,76232,473,22502,273,280
4Oct 16, 2021 10:2714,455256,199,17828,807,00036,241,00029,634,560
5Oct 16, 2021 10:2714,600256,440,75433,945,00031,755,00029,761,536
6Oct 16, 2021 10:2714,606252,269,35433,403,00032,326,00029,499,392
7Oct 16, 2021 10:2714,610257,021,26132,872,00032,872,00029,663,232
8Oct 16, 2021 10:2714,645260,089,16135,223,00030,678,00029,552,640
9Oct 16, 2021 10:2714,666257,750,36933,539,00032,457,00029,548,544
10Oct 16, 2021 10:2714,719251,777,16032,574,00033,660,00029,552,640
11Oct 16, 2021 10:2714,719260,694,88733,680,00032,557,00029,630,464
12Oct 16, 2021 10:2714,724257,708,79034,233,00032,024,00029,736,960