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 04:58olliecrowolliecrowScore: 8,251Success
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 04:588,20060,427,76218,949,00017,951,0002,297,856
2Feb 22, 2026 04:588,21064,307,53621,968,00014,978,0002,285,568
3Feb 22, 2026 04:588,22961,082,38019,015,00018,014,0002,293,760
4Feb 22, 2026 04:588,23856,964,75322,042,00015,029,0002,285,568
5Feb 22, 2026 04:588,25158,416,46518,063,00019,067,0002,285,568
6Feb 22, 2026 04:588,26663,293,64220,106,00017,090,0002,297,856
7Feb 22, 2026 04:588,30660,818,78322,224,00015,153,0002,404,352
8Feb 22, 2026 04:588,32258,063,09025,302,00012,145,0002,301,952
9Feb 22, 2026 04:588,32364,762,67627,332,00010,123,0002,281,472