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 09:08olliecrowolliecrowScore: 4,719Success
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 09:124,69944,159,62919,131,0002,013,0002,469,888
2Feb 22, 2026 09:084,70750,348,50419,166,0002,017,0002,281,472
3Feb 22, 2026 09:084,71252,526,17818,175,0003,029,0002,461,696
4Feb 22, 2026 09:124,71348,277,52019,190,0002,020,0002,277,376
5Feb 22, 2026 09:084,71445,648,49119,194,0002,020,0002,285,568
6Feb 22, 2026 09:124,71548,931,10919,196,0002,020,0002,277,376
7Feb 22, 2026 09:124,71546,951,33920,209,0001,010,0002,461,696
8Feb 22, 2026 09:124,71648,007,76019,203,0002,021,0002,473,984
9Feb 22, 2026 09:444,71949,186,79719,214,0002,022,0002,281,472
10Feb 22, 2026 09:444,71946,559,17519,212,0002,022,0002,457,600
11Feb 22, 2026 09:124,71945,729,79819,213,0002,022,0002,465,792
12Feb 22, 2026 09:124,72351,884,25019,228,0002,024,0002,461,696
13Feb 22, 2026 09:084,72645,092,06119,240,0002,025,0002,281,472
14Feb 22, 2026 09:084,72736,773,57420,258,0001,012,0002,469,888
15Feb 22, 2026 09:124,72747,990,20019,245,0002,025,0002,457,600
16Feb 22, 2026 09:124,72851,211,86119,251,0002,026,0002,277,376
17Feb 22, 2026 09:084,73244,969,82919,268,0002,028,0002,277,376
18Feb 22, 2026 09:444,74048,795,43419,299,0002,031,0002,281,472
19Feb 22, 2026 09:084,74246,582,74719,308,0002,032,0002,465,792
20Feb 22, 2026 09:084,74346,309,09919,310,0002,032,0002,281,472
21Feb 22, 2026 09:084,76147,271,05719,385,0002,040,0002,469,888