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 listJul 1, 2026 23:34Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 13:44Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:22018,906,5509,709,00002,117,632expected "-2934912104263137 ", got "-2934911932590117 "stderr
2Oct 31, 2026 14:22019,133,7409,985,00002,117,632expected "12479341692714271 ", got "12479341595984491 "stderr
3Oct 31, 2026 14:22019,142,4879,965,00002,117,632expected "12469614309634237 ", got "12469615554211177 "stderr
4Jul 1, 2026 23:372,38218,661,54110,723,00002,117,632stderr
5Jul 1, 2026 23:372,39018,656,03410,755,00002,117,632stderr
6Jul 1, 2026 23:372,39118,629,00110,762,00002,117,632stderr
7Jul 1, 2026 23:372,39218,621,19210,766,00002,117,632stderr
8Jul 1, 2026 23:372,39218,633,45210,764,00002,117,632stderr
9Jul 1, 2026 23:372,39218,800,33310,767,00002,117,632stderr
10Jul 1, 2026 23:372,39420,037,67110,776,00002,117,632stderr
11Jul 1, 2026 23:372,39818,657,89610,791,00002,117,632stderr
12Jul 1, 2026 23:372,41018,779,11910,846,00002,117,632stderr