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 listApr 17, 2025 23:08Chandrasekaran AkashChandrasekaran AkashScore: 119,318Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2025 23:08119,244565,208,139513,618,00022,982,0002,326,528
2Apr 17, 2025 23:08119,247563,360,084508,631,00027,979,0002,330,624
3Apr 17, 2025 23:08119,252564,997,224507,654,00028,980,0002,297,856
4Apr 17, 2025 23:08119,267560,880,390510,718,00025,985,0002,445,312
5Apr 17, 2025 23:08119,318558,445,058513,935,00022,997,0002,445,312
6Apr 17, 2025 23:08119,338560,286,572516,019,00021,000,0002,326,528
7Apr 17, 2025 23:08119,356559,814,475512,098,00025,004,0002,330,624
8Apr 17, 2025 23:08119,384561,284,494511,216,00026,011,0002,330,624
9Apr 17, 2025 23:08119,409563,131,216512,324,00025,015,0002,441,216