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:21olliecrowolliecrowScore: 9,421Success
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:269,34564,556,03025,032,00017,021,0002,285,568
2Feb 22, 2026 04:159,36863,790,16127,100,00015,055,0002,285,568
3Feb 22, 2026 04:159,37661,702,97527,122,00015,068,0002,285,568
4Feb 22, 2026 04:219,37866,874,10925,119,00017,081,0002,297,856
5Feb 22, 2026 04:159,38165,146,06233,169,0009,046,0002,289,664
6Feb 22, 2026 04:159,39067,144,21227,163,00015,090,0002,285,568
7Feb 22, 2026 03:549,39265,381,91130,187,00012,075,0002,297,856
8Feb 22, 2026 03:549,39665,538,45923,155,00019,128,0002,310,144
9Feb 22, 2026 04:159,40466,833,17530,228,00012,091,0002,281,472
10Feb 22, 2026 04:269,40663,560,07425,194,00017,132,0002,285,568
11Feb 22, 2026 03:549,42064,765,18325,231,00017,157,0002,285,568
12Feb 22, 2026 04:159,42165,280,60428,262,00014,131,0002,297,856
13Feb 22, 2026 03:549,42164,957,68228,263,00014,131,0002,285,568
14Feb 22, 2026 03:549,42366,924,97728,268,00014,134,0002,293,760
15Feb 22, 2026 03:549,42675,300,71427,267,00015,148,0002,297,856
16Feb 22, 2026 04:219,43272,160,33024,255,00018,191,0002,297,856
17Feb 22, 2026 03:549,43865,137,19127,303,00015,168,0002,285,568
18Feb 22, 2026 04:269,44464,939,63730,356,00012,142,0002,297,856
19Feb 22, 2026 03:549,45769,045,87627,357,00015,198,0002,387,968
20Feb 22, 2026 04:159,46774,709,46128,400,00014,200,0002,289,664
21Feb 22, 2026 04:159,46972,575,10728,407,00014,203,0002,281,472
22Feb 22, 2026 04:219,46977,429,49626,379,00016,233,0002,293,760
23Feb 22, 2026 03:549,48669,179,35325,409,00017,278,0002,289,664
24Feb 22, 2026 04:159,52975,347,37026,925,00015,955,0002,281,472