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 listOct 4, 2026 18:36Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 18:04Andrew Epstein113.41CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 18:04021,249,53512,391,00002,113,536expected "-2943009345288451 ", got "-2943008799426391 "
2Oct 5, 2026 18:04021,986,53813,156,00002,113,536expected "-2936400795000841 ", got "-2936400785180461 "
3Oct 5, 2026 18:04021,239,75412,382,00002,113,536expected "12465476634151207 ", got "12465476992374007 "
4Oct 4, 2026 18:393,19723,221,19314,390,00002,113,536
5Oct 4, 2026 18:393,19823,270,79614,394,00002,113,536
6Oct 4, 2026 18:393,20123,076,44614,405,00002,113,536
7Oct 4, 2026 18:393,20923,252,69114,442,00002,113,536
8Oct 4, 2026 18:393,21323,271,62514,460,00002,113,536
9Oct 4, 2026 18:393,21423,245,69914,467,00002,113,536
10Oct 4, 2026 18:393,21423,285,39614,466,00002,113,536
11Oct 4, 2026 18:393,21928,065,41814,486,00002,117,632
12Oct 4, 2026 18:393,22023,357,64814,493,00002,113,536