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:34olliecrowolliecrowScore: 11,354Success
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:3411,26276,789,43733,447,00017,230,0002,355,200
2Feb 22, 2026 02:4211,29475,824,69832,886,00017,938,0002,412,544
3Feb 22, 2026 02:3411,29875,596,10732,897,00017,944,0002,408,448
4Feb 22, 2026 02:4211,30576,539,50232,917,00017,955,0002,408,448
5Feb 22, 2026 02:3411,30678,375,59833,918,00016,959,0002,281,472
6Feb 22, 2026 02:4211,31780,485,61533,951,00016,975,0002,420,736
7Feb 22, 2026 02:4211,32576,671,36633,974,00016,987,0002,408,448
8Feb 22, 2026 02:3411,32678,455,70733,978,00016,989,0002,285,568
9Feb 22, 2026 02:4211,34079,681,99234,020,00017,010,0002,285,568
10Feb 22, 2026 02:4211,35473,903,51033,059,00018,032,0002,404,352
11Feb 22, 2026 02:3411,37477,367,97034,122,00017,061,0002,412,544
12Feb 22, 2026 02:4211,38972,386,32834,168,00017,084,0002,281,472
13Feb 22, 2026 02:4211,39878,661,54134,523,00016,768,0002,412,544
14Feb 22, 2026 02:4211,39974,264,00631,179,00020,115,0002,404,352
15Feb 22, 2026 02:3411,43274,198,17134,295,00017,147,0002,457,600
16Feb 22, 2026 02:3411,45383,123,88533,348,00018,189,0002,408,448
17Feb 22, 2026 02:3411,51476,678,62733,878,00017,935,0002,301,952
18Feb 22, 2026 02:3411,69176,747,77336,423,00016,188,0002,412,544