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 listFeb 22, 2026 02:47olliecrowolliecrowScore: 10,814Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 02:4710,71770,712,88731,147,00017,080,0002,412,544
2Feb 22, 2026 02:4710,75970,703,50032,278,00016,139,0002,408,448
3Feb 22, 2026 02:4710,76969,311,27733,317,00015,144,0002,420,736
4Feb 22, 2026 02:4710,81379,049,17733,453,00015,205,0002,412,544
5Feb 22, 2026 02:4710,81478,811,29032,441,00016,220,0002,420,736
6Feb 22, 2026 02:4710,82879,162,35533,501,00015,227,0002,281,472
7Feb 22, 2026 02:4710,85680,528,25330,907,00017,946,0002,416,640
8Feb 22, 2026 02:4710,92375,416,35432,100,00017,053,0002,412,544
9Feb 22, 2026 02:4710,94672,701,52930,156,00019,099,0002,285,568