C++ã«æ £ãã¦ãã人ã«ã¨ã£ã¦ã¯èããã¤ããªããã¨ã§ããã ã¯ã©ã¹ãã³ã³ããã«ããããã¨ãããã¨ã試ããããªãææãããã¾ãã ã³ã³ããã«ã¯ã©ã¹ã®ãã¤ã³ã¿ããããã¨ãã¤ã³ã¿ç®¡çãé¢åã ãã ã¯ã©ã¹ã®å®ä½ãããã¦ãããã便å©ãããªãï¼ ã¨ããã®ããã®çºç«¯ã§ãã ãã¦ãã¯ã©ã¹ã¯ã³ã³ããã«ããã¦ããããã®ãªãã§ããããï¼ ããããã£ã¦ã¿ã¾ãããï¼ C++ code - 32 lines - codepad äºæ³ã¨éãçµæãã§ããï¼ï¼ï¼ ã¨æãã¾ãããï¼ ãªããã¹ãã©ã¯ã¿ãå¼ã°ããåæ°ãæ³å®ããå¤ãã®ã§ãããï¼ ããã¦ãã³ã³ã¹ãã©ã¯ã¿ã®å¼ã³åºãããåæ°ã¨ãã¹ãã©ã¯ã¿ã®å¼ã³åºãããåæ°ãä¸è´ãã¦ãã¾ããã ããï¼ è¨ç·´ãããC++ã¯ããã§ãããã¨ã«æ°ä»ãã¾ãã ãvectorãæ¡å¼µããã¦ããæã«æããããã¨ãèµ·ãã¦ããã®ã§ã¯ãªããï¼ã ã§ã¯ããã£ã¦ã¿ã¾ãããã æ¡å¼µãããªãããã«reserveã§ãã
{{#tags}}- {{label}}
{{/tags}}