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 5, 2026 12:42Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 18:01Andrew Epstein86.68CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 18:01017,486,8658,607,00002,117,632expected "-1 ", got "-667208761 "
2Oct 5, 2026 18:01018,234,3509,182,00002,117,632expected "12481321812444433 ", got "12481321561887793 "
3Oct 5, 2026 18:01017,554,5038,594,00002,117,632expected "-2935828078568095 ", got "-2935828124516275 "
4Oct 5, 2026 12:451,88617,327,8498,487,00002,117,632
5Oct 5, 2026 12:451,89017,296,3748,509,00002,117,632
6Oct 5, 2026 12:451,89217,296,6818,515,00002,117,632
7Oct 5, 2026 12:451,89317,266,5158,521,00002,117,632
8Oct 5, 2026 12:451,89417,402,2608,524,00002,117,632
9Oct 5, 2026 12:451,90517,356,6098,575,00002,117,632
10Oct 5, 2026 12:451,92517,384,0708,665,00002,117,632
11Oct 5, 2026 12:451,98017,724,6348,914,00002,117,632
12Oct 5, 2026 12:452,06318,188,0359,285,00002,117,632