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 listNov 8, 2021 12:20Ilya AniskovetsIlya AniskovetsScore: 15,742Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2021 12:208,447111,527,13938,011,66702,260,992
2Nov 8, 2021 12:208,472101,511,22538,125,93302,265,088
3Nov 8, 2021 12:208,514117,307,69638,314,30902,269,184
4Nov 8, 2021 12:2015,644259,646,08837,907,00032,492,00029,650,944
5Nov 8, 2021 12:2015,694257,043,59535,312,00035,312,00029,597,696
6Nov 8, 2021 12:2015,720255,817,24037,452,00033,290,00029,765,632
7Nov 8, 2021 12:2015,742256,026,16238,063,00032,776,00029,749,248
8Nov 8, 2021 12:2015,776263,157,87936,509,00034,481,00029,536,256
9Nov 8, 2021 12:2015,786257,194,07839,343,00031,693,00029,618,176
10Nov 8, 2021 12:2015,870257,345,34040,977,00030,440,00029,536,256
11Nov 8, 2021 12:2015,891258,325,14239,106,00032,402,00029,536,256
12Nov 8, 2021 12:2015,994265,091,06341,128,00030,846,00029,614,080