2020-07-01ãã1ã¶æéã®è¨äºä¸è¦§
std::sort(a.rbegin(), a.rend()); ã¿ãããªãã¤ã§ãã 便å®ä¸ std::vector ã®ãããªãã®ãèãã¾ãããstd::set ã¨ãã«ã¤ãã¦ãåæ§ã§ãï¼random-access ã¢ãã¯é¤ãï¼ã æ®éã®ã¤ãã¬ã¼ã¿ ã¾ãæ®éã®ã¤ãã¬ã¼ã¿ã«è§¦ãã¾ãããã [0][1][2]...[n-1][-] ^ a.bâ¦
ã¾ããã»ã°æ¨èªä½ã¯é£ãããã®ã§ã¯ãªãã®ã§ãå¤ãªå å ¥è¦³ã¯ç¡ããã¾ãããã 以ä¸ã¯ãå帰ã®ç¥èããªãã¦ãèªããããã«å¿ããã¾ãã ãä½ããå§ããããããããããªããã¨ãã人ã¯ãã¨ããããæåã«è¿°ã¹ãã»ã°æ¨ãç解ããã¨ããããå§ããã¨ããã¨æãã¾â¦