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 24, 2024 18:03E SequeiraE SequeiraScore: 964,598Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2024 18:03961,6034,536,383,3464,286,270,00040,945,00029,478,912
2Nov 24, 2024 18:03962,1354,548,468,2594,282,719,00046,887,00029,564,928
3Nov 24, 2024 18:03962,5544,540,398,0804,274,787,00056,705,00029,495,296
4Nov 24, 2024 18:03962,5814,550,351,0954,271,705,00059,911,00029,491,200
5Nov 24, 2024 18:03964,5984,555,273,4794,284,990,00055,700,00029,483,008
6Nov 24, 2024 18:03965,6854,558,043,0314,305,943,00039,640,00029,519,872
7Nov 24, 2024 18:03971,6254,664,442,6554,318,125,00054,189,00029,499,392
8Nov 24, 2024 18:031,015,9024,787,269,6274,505,448,00066,109,00029,425,664
9Nov 24, 2024 18:031,018,4164,794,766,7384,546,827,00036,046,00029,528,064