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:29Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 18:04Andrew Epstein60.74CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 18:04034,894,93125,623,00002,113,536expected "2147483647 ", got "1842992947 "
2Oct 5, 2026 18:04030,280,70021,440,00002,113,536expected "-2935788206825549 ", got "-2935787837279369 "
3Oct 5, 2026 18:04034,202,28825,384,00002,113,536expected "12452938397067143 ", got "12452938550062163 "
4Oct 4, 2026 18:315,05031,570,33622,728,00002,113,536
5Oct 4, 2026 18:315,05131,648,94922,731,00002,113,536
6Oct 4, 2026 18:315,05131,590,05822,733,00002,113,536
7Oct 4, 2026 18:315,05431,620,47022,745,00002,113,536
8Oct 4, 2026 18:315,05531,602,37622,750,00002,113,536
9Oct 4, 2026 18:315,05631,584,62022,756,00002,113,536
10Oct 4, 2026 18:315,05831,545,70122,763,00002,113,536
11Oct 4, 2026 18:315,05933,045,88722,767,00002,113,536
12Oct 4, 2026 18:315,06731,676,48622,805,00002,113,536