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 3, 2026 00:16Andrew EpsteinAndrew EpsteinScore: 14,822Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2026 00:1914,69676,572,99065,068,0001,064,0002,117,632stderr
2Oct 3, 2026 00:1914,71076,662,51065,129,0001,068,0002,117,632stderr
3Oct 3, 2026 00:1914,73976,774,53965,247,0001,081,0002,117,632stderr
4Oct 3, 2026 00:1914,78576,983,97265,460,0001,074,0002,117,632stderr
5Oct 3, 2026 00:1914,82277,090,66265,642,0001,061,0002,117,632stderr
6Oct 3, 2026 00:1914,84577,243,88265,734,0001,070,0002,117,632stderr
7Oct 3, 2026 00:1914,97177,805,24866,322,0001,049,0002,117,632stderr
8Oct 3, 2026 00:1915,14778,550,52067,068,0001,096,0002,117,632stderr
9Oct 3, 2026 00:1915,16178,680,54867,142,0001,085,0002,117,632stderr