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 listSep 19, 2026 13:28Andrew EpsteinAndrew EpsteinScore: 3,342Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 19, 2026 13:453,33025,320,63113,925,0001,064,0002,125,824stderr
2Sep 19, 2026 13:453,33026,406,56713,911,0001,075,0002,129,920stderr
3Sep 19, 2026 13:453,33425,263,63413,933,0001,071,0002,125,824stderr
4Sep 19, 2026 13:453,33825,234,16513,947,0001,074,0002,129,920stderr
5Sep 19, 2026 13:453,34225,400,87413,961,0001,078,0002,125,824stderr
6Sep 19, 2026 13:453,34625,258,78713,984,0001,073,0002,125,824stderr
7Sep 19, 2026 13:453,34725,303,06813,982,0001,083,0002,125,824stderr
8Sep 19, 2026 13:453,35025,228,27514,000,0001,077,0002,129,920stderr
9Sep 19, 2026 13:453,35625,296,71314,064,0001,038,0002,125,824stderr