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 18, 2025 00:02Chandrasekaran AkashChandrasekaran AkashScore: 113,205Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 00:02113,135532,945,440482,102,00027,005,0002,445,312
2Apr 18, 2025 00:02113,150532,629,500482,165,00027,009,0002,330,624
3Apr 18, 2025 00:02113,151532,282,005488,171,00021,007,0002,445,312
4Apr 18, 2025 00:02113,178532,435,714482,285,00027,015,0002,437,120
5Apr 18, 2025 00:02113,205533,276,598487,448,00021,975,0002,326,528
6Apr 18, 2025 00:02113,207536,348,451495,421,00014,011,0002,326,528
7Apr 18, 2025 00:02113,216535,679,854486,450,00023,021,0002,330,624
8Apr 18, 2025 00:02113,245532,605,117493,614,00015,987,0002,326,528
9Apr 18, 2025 00:02113,334535,201,326482,003,00028,000,0002,453,504