Skip to content
#

C++

cpp logo

C++ is a popular and widely used mid-level language. It was designed as an extension of the C language.

Here are 196 public repositories matching this topic...

leetcode
azl397985856
azl397985856 commented Mar 19, 2020

ๆœ‰ไธ€ๅน…ไปฅไบŒ็ปดๆ•ดๆ•ฐๆ•ฐ็ป„่กจ็คบ็š„ๅ›พ็”ป๏ผŒๆฏไธ€ไธชๆ•ดๆ•ฐ่กจ็คบ่ฏฅๅ›พ็”ป็š„ๅƒ็ด ๅ€ผๅคงๅฐ๏ผŒๆ•ฐๅ€ผๅœจ 0 ๅˆฐ 65535 ไน‹้—ดใ€‚

็ป™ไฝ ไธ€ไธชๅๆ ‡ (sr, sc) ่กจ็คบๅ›พๅƒๆธฒๆŸ“ๅผ€ๅง‹็š„ๅƒ็ด ๅ€ผ๏ผˆ่กŒ ๏ผŒๅˆ—๏ผ‰ๅ’Œไธ€ไธชๆ–ฐ็š„้ขœ่‰ฒๅ€ผ newColor๏ผŒ่ฎฉไฝ ้‡ๆ–ฐไธŠ่‰ฒ่ฟ™ๅน…ๅ›พๅƒใ€‚

ไธบไบ†ๅฎŒๆˆไธŠ่‰ฒๅทฅไฝœ๏ผŒไปŽๅˆๅง‹ๅๆ ‡ๅผ€ๅง‹๏ผŒ่ฎฐๅฝ•ๅˆๅง‹ๅๆ ‡็š„ไธŠไธ‹ๅทฆๅณๅ››ไธชๆ–นๅ‘ไธŠๅƒ็ด ๅ€ผไธŽๅˆๅง‹ๅๆ ‡็›ธๅŒ็š„็›ธ่ฟžๅƒ็ด ็‚น๏ผŒๆŽฅ็€ๅ†่ฎฐๅฝ•่ฟ™ๅ››ไธชๆ–นๅ‘ไธŠ็ฌฆๅˆๆกไปถ็š„ๅƒ็ด ็‚นไธŽไป–ไปฌๅฏนๅบ”ๅ››ไธชๆ–นๅ‘ไธŠๅƒ็ด ๅ€ผไธŽๅˆๅง‹ๅๆ ‡็›ธๅŒ็š„็›ธ่ฟžๅƒ็ด ็‚น๏ผŒโ€ฆโ€ฆ๏ผŒ้‡ๅค่ฏฅ่ฟ‡็จ‹ใ€‚ๅฐ†ๆ‰€ๆœ‰ๆœ‰่ฎฐๅฝ•็š„ๅƒ็ด ็‚น็š„้ขœ่‰ฒๅ€ผๆ”นไธบๆ–ฐ็š„้ขœ่‰ฒๅ€ผใ€‚

ๆœ€ๅŽ่ฟ”ๅ›ž็ป่ฟ‡ไธŠ่‰ฒๆธฒๆŸ“ๅŽ็š„ๅ›พๅƒใ€‚

็คบไพ‹ 1:

่พ“ๅ…ฅ:
image = [[1,1,1],[1,1,0],[1,0,1]]
sr = 1, sc = 1, newColor = 2
่พ“ๅ‡บ: [[2,2,2],[2,2,0],[2,0,1]]
่งฃๆž:
ๅœจๅ›พๅƒ็š„ๆญฃไธญ้—ด๏ผŒ(ๅๆ ‡(

devjgm
devjgm commented Jan 20, 2020

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
I'd like the source code to be automatically clang-formatted according to my settings anytime the code is compiled. That is, don't require me to use the contextual menu or keyboard shortcut to format the code. Just auto-format it; just like the code is auto-compiled too.

Well, ther

syntheticmagus
syntheticmagus commented Oct 15, 2019

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia
You canโ€™t perform that action at this time.