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 listMar 21, 2026 02:59Dominique GarmierDominique GarmierScore: 40,782Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 23:2540,717209,162,786182,224,0001,001,0002,314,240
2Mar 20, 2026 20:2540,751209,898,695182,379,0001,002,0002,387,968
3Mar 21, 2026 02:0540,753206,147,505182,386,0001,002,0002,514,944
4Mar 21, 2026 00:3440,754206,896,570183,391,00002,383,872
5Mar 21, 2026 02:0540,758208,393,166183,409,00002,314,240
6Mar 21, 2026 02:5940,760211,389,308183,422,00002,314,240
7Mar 20, 2026 23:2540,765209,498,672182,440,0001,002,0002,314,240
8Mar 20, 2026 17:3740,770208,540,781181,460,0002,005,0002,306,048
9Mar 21, 2026 02:0540,770206,252,287183,466,00002,314,240
10Mar 20, 2026 20:2540,782209,349,915183,517,00002,314,240
11Mar 20, 2026 17:3740,789208,314,752181,545,0002,006,0002,314,240
12Mar 21, 2026 00:3440,792214,062,157181,556,0002,006,0002,396,160
13Mar 20, 2026 17:3740,799208,796,098181,588,0002,006,0002,387,968
14Mar 21, 2026 00:3440,804205,691,292181,613,0002,006,0002,392,064
15Mar 21, 2026 02:5940,850213,026,608182,827,000999,0002,392,064
16Mar 20, 2026 23:2540,866213,810,556181,897,0001,998,0002,379,776
17Mar 20, 2026 20:2540,878219,908,327182,952,000999,0002,310,144
18Mar 21, 2026 02:5940,886215,296,249180,986,0002,999,0002,375,680