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 listDec 20, 2024 09:59Mikhail ShirokovMikhail ShirokovScore: 7,712Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 09:597,70362,281,38233,645,0001,019,0002,289,664
2Dec 20, 2024 09:597,70657,241,29833,689,000990,0002,367,488
3Dec 20, 2024 09:597,70962,756,26633,669,0001,020,0002,363,392
4Dec 20, 2024 09:597,71163,954,73734,698,00002,289,664
5Dec 20, 2024 09:597,71260,433,73333,683,0001,020,0002,289,664
6Dec 20, 2024 09:597,71663,623,57033,702,0001,021,0002,289,664
7Dec 20, 2024 09:597,71864,731,37933,710,0001,021,0002,359,296
8Dec 20, 2024 09:597,73864,015,33032,833,0001,989,0002,363,392
9Dec 20, 2024 09:597,74763,219,09632,869,0001,992,0002,367,488