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 listJul 18, 2023 15:31gchebanovgchebanovScore: 19,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 15:3112,567124,326,85356,553,43302,260,992
2Jul 18, 2023 15:3112,569113,536,31256,559,68002,269,184
3Jul 18, 2023 15:3112,573116,719,50656,579,11502,265,088
4Jul 18, 2023 15:3119,748278,664,79060,342,00028,525,00029,630,464
5Jul 18, 2023 15:3119,757279,023,19054,556,00034,350,00029,544,448
6Jul 18, 2023 15:3119,789280,223,78055,657,00033,394,00029,626,368
7Jul 18, 2023 15:3119,816275,532,37554,719,00034,452,00029,552,640
8Jul 18, 2023 15:3119,819271,661,54952,924,00036,262,00029,663,232
9Jul 18, 2023 15:3119,845279,224,31256,733,00032,569,00029,548,544
10Jul 18, 2023 15:3119,872277,161,03156,533,00032,892,00029,691,904
11Jul 18, 2023 15:3119,937281,775,10259,083,00030,635,00029,536,256
12Jul 18, 2023 15:3120,041282,276,14863,246,00026,938,00029,638,656