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

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 18:02Andrew Epstein34.44CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 18:02040,945,37931,883,00002,113,536expected "2147483649 ", got "2897815389 "
2Oct 5, 2026 18:02042,177,08032,851,00002,113,536expected "2147483647 ", got "2434004287 "
3Oct 5, 2026 18:02040,857,51731,912,00002,113,536expected "-2937080855609911 ", got "-2937080610816991 "
4Oct 4, 2026 18:167,27841,629,66232,755,00002,113,536
5Oct 4, 2026 18:167,28241,578,48832,773,00002,113,536
6Oct 4, 2026 18:167,29241,704,64932,814,00002,113,536
7Oct 4, 2026 18:167,29341,648,61232,819,00002,113,536
8Oct 4, 2026 18:167,29541,750,13632,830,00002,113,536
9Oct 4, 2026 18:167,29641,689,26132,832,00002,113,536
10Oct 4, 2026 18:167,30041,685,18832,850,00002,113,536
11Oct 4, 2026 18:167,31041,713,98432,897,00002,113,536
12Oct 4, 2026 18:167,32541,765,55932,963,00002,113,536