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:04Chandrasekaran AkashChandrasekaran AkashScore: 181,984Success
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:04181,250840,641,186672,693,000142,934,0002,347,008
2Apr 17, 2025 23:04181,461842,089,739655,658,000160,916,0002,441,216
3Apr 17, 2025 23:04181,518842,250,294670,860,000145,969,0002,330,624
4Apr 17, 2025 23:04181,870850,781,022675,341,000143,072,0002,478,080
5Apr 17, 2025 23:04181,984843,979,766666,942,000151,986,0002,502,656
6Apr 17, 2025 23:04182,081845,609,291683,470,000135,894,0002,482,176
7Apr 17, 2025 23:04182,394846,536,729661,013,000159,761,0002,351,104
8Apr 17, 2025 23:04182,622847,977,844659,837,000161,960,0002,535,424
9Apr 17, 2025 23:04183,378856,879,616665,161,000160,038,0002,514,944