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 15, 2021 06:21Ilya AniskovetsIlya AniskovetsScore: 19,322Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 06:2111,903107,832,01753,564,96502,256,896
2Oct 15, 2021 06:2111,978112,299,65153,902,59702,269,184
3Oct 15, 2021 06:2112,046118,946,66054,207,34202,269,184
4Oct 15, 2021 06:2119,179271,158,46744,915,00041,392,00029,630,464
5Oct 15, 2021 06:2119,249277,686,07257,748,00028,874,00029,601,792
6Oct 15, 2021 06:2119,300272,800,83550,584,00036,268,00029,696,000
7Oct 15, 2021 06:2119,322275,478,63955,818,00031,129,00029,548,544
8Oct 15, 2021 06:2119,365274,783,72254,982,00032,159,00029,704,192
9Oct 15, 2021 06:2119,374278,406,45053,335,00033,847,00029,626,368
10Oct 15, 2021 06:2119,405276,636,52952,801,00034,523,00029,757,440
11Oct 15, 2021 06:2119,424272,937,04551,650,00035,757,00029,523,968
12Oct 15, 2021 06:2119,618282,173,13451,751,00036,530,00029,663,232