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 17:41gchebanovgchebanovScore: 20,463Success
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 17:4110,696124,397,92148,131,21002,269,184
2Jul 18, 2023 17:4110,701106,483,95048,155,72202,260,992
3Jul 18, 2023 17:4110,745124,207,73448,352,60702,256,896
4Jul 18, 2023 17:4120,321274,053,20860,963,00030,481,00029,630,464
5Jul 18, 2023 17:4120,451274,573,69863,879,00028,150,00029,630,464
6Jul 18, 2023 17:4120,459275,516,01057,668,00034,398,00029,663,232
7Jul 18, 2023 17:4120,463280,531,95258,690,00033,392,00029,630,464
8Jul 18, 2023 17:4120,492277,750,39262,574,00029,640,00029,724,672
9Jul 18, 2023 17:4120,519274,133,75861,200,00031,137,00029,544,448
10Jul 18, 2023 17:4120,520279,596,04960,862,00031,480,00029,552,640
11Jul 18, 2023 17:4120,587283,942,84358,028,00034,613,00029,544,448
12Jul 18, 2023 17:4120,665277,221,74558,895,00034,097,00029,630,464