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:06olliecrowolliecrowScore: 19,812Success
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:1019,764115,304,93172,951,00015,989,0002,465,792
2Feb 22, 2026 02:1019,778114,709,67173,000,00016,000,0002,465,792
3Feb 22, 2026 02:1019,783114,881,83872,020,00017,004,0002,498,560
4Feb 22, 2026 02:0619,788118,357,49672,037,00017,008,0002,465,792
5Feb 22, 2026 02:0619,791116,883,67572,050,00017,011,0002,306,048
6Feb 22, 2026 02:0619,794110,997,65472,060,00017,014,0002,461,696
7Feb 22, 2026 02:1019,796110,649,74274,067,00015,013,0002,281,472
8Feb 22, 2026 02:1019,801111,435,18173,085,00016,018,0002,453,504
9Feb 22, 2026 02:1019,810116,553,30972,116,00017,027,0002,453,504
10Feb 22, 2026 02:0619,812115,792,12672,126,00017,029,0002,285,568
11Feb 22, 2026 02:0619,832113,047,25373,202,00016,044,0002,453,504
12Feb 22, 2026 02:1019,838111,946,07772,221,00017,052,0002,457,600
13Feb 22, 2026 02:1019,843115,640,11873,240,00016,052,0002,457,600
14Feb 22, 2026 02:0619,865118,526,67772,317,00017,075,0002,457,600
15Feb 22, 2026 02:0619,872114,044,79873,349,00016,076,0002,461,696
16Feb 22, 2026 02:0619,882118,275,12672,378,00017,089,0002,285,568
17Feb 22, 2026 02:0619,927119,370,62373,552,00016,121,0002,289,664
18Feb 22, 2026 02:1019,992114,668,33872,972,00016,993,0002,285,568