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 00:30Mikhail ShirokovMikhail ShirokovScore: 14,568Success
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 00:3014,54792,419,50764,455,0001,007,0002,273,280
2Dec 20, 2024 00:3014,55187,431,99765,481,00002,273,280
3Dec 20, 2024 00:3014,55493,114,41164,487,0001,007,0002,379,776
4Dec 20, 2024 00:3014,55888,354,70265,513,00002,273,280
5Dec 20, 2024 00:3014,56885,141,25665,558,00002,375,680
6Dec 20, 2024 00:3014,56889,558,04665,558,00002,392,064
7Dec 20, 2024 00:3014,56991,746,56065,559,00002,273,280
8Dec 20, 2024 00:3014,56989,611,53664,553,0001,008,0002,502,656
9Dec 20, 2024 00:3014,57690,905,66264,581,0001,009,0002,273,280