æ¦è¦
AtCoder Heuristic Contest 025 ã«åå ããè¨é²ã§ãã
çããã¤ã³ã¿ã©ã¯ ã·ã§ã³åé¡ã
æ¹é1ï¼ãã¤ã¼ãå®è£
ã¨ããããã·ã³ãã«ãªè§£æ³ãèãã¦å®è£
ããã¨ããããçæããã以ä¸ã®ãããªè§£æ³ã«ãªãã
æåãåã°ã«ã¼ãã¯1ã¤ãã¤ã¢ã¤ãã ãæã¤ãæ®ã£ãã¢ã¤ãã ã¯ãã¹ã¦ã°ã«ã¼ã0ãæã¤ã
s=0ã¨ããã
ã°ã«ã¼ãsãä»ã®ã°ã«ã¼ãã«é çªã«1åãã¤ã¢ã¤ãã ãã©ã³ãã ã«æ¸¡ãã¦ããã
ã°ã«ã¼ãsãã°ã«ã¼ãiã«ã¢ã¤ãã ã渡ããã¨ããã°ã«ã¼ãiãã°ã«ã¼ãsããéãã大ãããªã£ãããs = iã«ãªã£ã¦ãå度3ãç¹°ãè¿ãã
å®è£
ä¸ã®æ³¨æç¹ã¨ãã¦ã
ã¢ã¤ãã ã0åã®ã°ã«ã¼ããä½ã£ã¦ã¯ãããªã
ä»ã®ã©ã®ã¢ã¤ãã ã足ãåããã¦ãæµããªããããªæ¿éã¢ã¤ãã ã1åããå ´åããã®ã¢ã¤ãã 1åãå¯ä¸æã¤ã°ã«ã¼ããåºæ¥ä¸ããããã®ã°ã«ã¼ããããã®æ¿éã¢ã¤ãã ãåãã¨ã¢ã¤ãã ã0åã«ãªã£ã¦ãã¾ãã®ã§åã£ã¦ã¯ãããªãã
ã·ã¼ã1ã®çµæ
æåºã³ã¼ãï¼https://atcoder.jp/contests/ahc025/submissions/46658987
å¾ç¹ï¼1,163,992,256
æ¹é1ã®åé¡ç¹ã¯ããã¢ã¤ãã ã1åã©ã³ãã ã«é¸ãã§æ¸¡ããã¨ããéãã¢ã¤ãã ã渡ãå¯è½æ§ããããã¨ã«ãããã§ããã°è»½ãã¢ã¤ãã ãããã¨ããã¦åã°ã«ã¼ãã®éãããªããããããã«ãããã
ããã§ãã¯ã¨ãªã«2ã¤ã®ã¢ã¤ãã ã®å¤§å°é¢ä¿ãå°ãã¾ããã¨ãï¼ã¢ã¤ãã ã®éãã¯ä¸æã®ã¾ã¾ã ãï¼ãããã¢ã¤ãã ãã½ã¼ãã§ãããã¨ã«æ°ã¥ããã¢ã¤ãã ãã½ã¼ãã§ããç¶æ
ã«ãªãã¨ãåã°ã«ã¼ãã®ä¸çªè»½ãã¢ã¤ãã ããããã®ã§ã軽ãã¢ã¤ãã ãé¸æãã¦ããã¨ããããã¨ã§å¾®èª¿æ´ã§ããããã«ãªãã
ã½ã¼ãã¢ã«ã´ãªãºã ã¯ã¯ã¤ãã¯ã½ã¼ã ãå®è£
ããã
å®è£
ä¸ã®æ³¨æç¹ã¨ãã¦ã
ã¯ã¤ãã¯ã½ã¼ã ã¯ææªã¯ã¨ãªåæ°ã(N-1)N/2 åããã
ã¯ã¤ãã¯ã½ã¼ã ã§ã¯ã¨ãªåæ°ã使ãæãããªãããã«ããªããã°ãªããªããä»åã¯å®è£
ãç°¡åã®ãã N*10 <= Q
ã®ã¨ãã¯ã¤ãã¯ã½ã¼ã ããã®ã«ååãªã¯ã¨ãªåæ°ãããã¨å¤æããããã°ã©ã ã¨ãããååãªã¯ã¨ãªåæ°ããªãå ´åããã¤ã¼ãå®è£
ã«åãæ¿ããã
ã·ã¼ã1ã®çµæ
æåºã³ã¼ãï¼https://atcoder.jp/contests/ahc025/submissions/46693668
å¾ç¹ï¼811,781,427
ä»åã®åé¡ã¯å¾ç¹ãå°ããã»ã©è¯ãã¹ã³ã¢ã¨ãªãã®ã§ãæ¹åãããã¨è¨ããã
æ¹é2ã®æ¹è¯ãã¯ã¤ãã¯ã½ã¼ã ã«ä½¿ããã¯ã¨ãªåæ°ä¸éãè¨å®ã§ããããã«ãã¦ãä¸éã«éãããéä¸ã§ã½ã¼ããæã¡åããæã¡åãã¨é çªãä¸éå端ã«ããããªãã¢ã¤ãã ããããæ°ã«ããªãã
ã¢ã¤ãã ã®äº¤æã«ä½¿ããæä½ã¯ã¨ãªåæ°ã D*3
ãããï¼åã°ã«ã¼ã3åãããã¢ã¤ãã ã®ããã¨ãããããããï¼ã¯ç¢ºå®ã«æ®ãããã«ãã¦ããã¨ã¯ã¯ã¤ãã¯ã½ã¼ã ã«ä½¿ããããã«è¨å®ããããã¡ããã¯ã¤ãã¯ã½ã¼ã ãæ©ãçµããã°ã¢ã¤ãã ã®äº¤æã«ä½¿ããã¯ã¨ãªåæ°ã¯å¢ããã
ããã«ããæ¹é1ã®ãã¤ã¼ãå®è£
ã®å®è¡ãå®å
¨ã«æé¤ã§ãããï¼é次第ã ã¨æããããã¤ã¼ãå®è£
ã®ã»ããè¯ãã¹ã³ã¢ã®ãµã³ãã«ãã¡ãã»ããã£ããâ¦â¦ï¼
æåºã³ã¼ãï¼https://atcoder.jp/contests/ahc025/submissions/46697190
å¾ç¹ï¼586,051,759
ãã®ãã¨ãã¢ã¤ãã ã®äº¤æã«ä½¿ããæä½ã¯ã¨ãªåæ°ã®å¤ããããã試ããã¨ãããD*5
ãæãã¹ã³ã¢ãè¯ãã£ãã®ã§æçµçã«ããããã
Seed 29ãèå¯ããã
æ¹é3ã®ã·ã¼ã29ã®çµæ
ã·ã¼ã29ã¯å®å
¨ã«ã½ã¼ãããã¦ããã«ãé¢ãããããã¾ãè¯ããªãã¹ã³ã¢ã«ãªã£ã¦ããã
ãã¨ãã°ãå·¦ãã5çªç®ã®ã°ã«ã¼ãã¯è»½ãã¢ã¤ãã ãããããæã£ã¦ããã«ãé¢ãããããããã貯ãè¾¼ãã§ä¸çªéãã°ã«ã¼ãã«ãªã£ã¦ãããããã¤ã®ã°ã«ã¼ããä»ã®ã°ã«ã¼ãã«è»½ãã¢ã¤ãã ãé
ã£ã¦ãããã°ãã£ã¨è¯ãã¹ã³ã¢ã«ãªãã¯ãã
åæã®çµæãå
¨1423ã¿ã¼ã³ã®ãã¡ã509ã¿ã¼ã³ç®ã§ã½ã¼ããå®äºããæ®ãç´900 ã¿ã¼ã³ã§ã¢ã¤ãã 交æããã¦ãããã¢ã¤ãã 交æã«ååã®ã¿ã¼ã³æ°ãããã«ãé¢ããããã¹ã³ã¢ã¯è¯ããªãçµæã«ãªã£ã¦ããã
ãã£ã¨æ·±ãèå¯ããããã«ãéä¸çµæãåºåãã¦ç¢ºèªãã¦ã¿ãã
ã½ã¼ãå®äºç´å¾ã®ç¶æ
ã½ã¼ãå®äºç´å¾ã¯ä¸ã®ç¶æ
ã¨ãªã£ãã
1åç®ã®ã¢ã¤ãã 交æ
ä¸çªå·¦ã¨ãå·¦ãã3çªç®ã®ã¢ã¤ãã ã®äº¤æãè¡ãããã
2åç®ã®ã¢ã¤ãã 交æ
ä¸çªå·¦ã¨ãå·¦ãã4çªç®ã®ã¢ã¤ãã ã®äº¤æãè¡ãããã
ãããè¦ãã¨ãéãã°ã«ã¼ãå士ã§ç¡é§ãªäº¤æãèµ·ãã¦ããããã«è¦ããããªã®ã§ãã¯ã¨ãªåæ°ãååã«æ®ã£ã¦ããå ´åï¼ææªäº¤æåæ°ã®(D-1)*D/2以ä¸ã®å ´åï¼ãåã°ã«ã¼ãã®éãã§ã½ã¼ããããéãã°ã«ã¼ãã¨è»½ãã°ã«ã¼ãã§äº¤æãè¡ããã¨ãããã¨ãããã°è¯ãããã§ããã
ããªãã¡ä»åã®æ¹éã§ã¯ãã°ã«ã¼ãã®éãã®ã¯ã¤ãã¯ã½ã¼ã ãå®è£
ããã
æåºã³ã¼ãï¼https://atcoder.jp/contests/ahc025/submissions/46748553
å¾ç¹ï¼602,827,302
ã¹ã³ã¢ãæªããªã£ã¦ãã¾ã£ãã
æ¹é5ï¼æ¹é4ã®æ¹è¯ï¼æ®ãã¯ã¨ãªåæ°ãåååãã¨ãã ãã°ã«ã¼ãã®ã½ã¼ããããï¼
æ¹é4ã§ã¯ãæ®ãã¯ã¨ãªåæ°ãååã«ããã¨ãã ãã°ã«ã¼ãã®ã¯ã¤ãã¯ã½ã¼ã ããã¦ãããã§ãªãã¨ãã¯æ¹é3ã«åãæ¿ããããã«èª¿æ´ãããããã§ãã¹ã³ã¢ãæªãã£ãã®ã§ãä½ããããªãã®ãåºåãã¡ã¤ã«ãæ¯è¼ãã¦åå ãæ¢ã£ãã
æªããªã£ããµã³ãã«ãæ¯è¼ãã¦ã¿ãã
以ä¸ã®åæ°ã¯ã(ã¢ã¤ãã ã®ã½ã¼ãã§ä½¿ã£ãã¯ã¨ãªåæ°)/(å
¨ã¯ã¨ãªåæ°)ã
ã·ã¼ã7ã®æ¯è¼ã
278/294
å·¦ãæ¹é3ãå³ãæ¹é4
ã·ã¼ã8ã®æ¯è¼ã
175/197
å·¦ãæ¹é3ãå³ãæ¹é4
ã·ã¼ã16ã®æ¯è¼ã
206/221
å·¦ãæ¹é3ãå³ãæ¹é4
è¯ããªã£ããµã³ãã«ãæ¯è¼ãã¦ã¿ãã
ã·ã¼ã1ã®æ¯è¼ã
306/1120
å·¦ãæ¹é3ãå³ãæ¹é4
ã·ã¼ã18ã®æ¯è¼ã
368/1028
å·¦ãæ¹é3ãå³ãæ¹é4
ä»ã«ãæ¯è¼ãããå²æã
æ¯è¼ãã¦ããã£ãã®ãã (ã¢ã¤ãã ã®ã½ã¼ãã§ä½¿ã£ãã¯ã¨ãªåæ°)/(å
¨ã¯ã¨ãªåæ°)ã®å¤ã大ãã ï¼ï¼ã¢ã¤ãã ã®ã½ã¼ãå¾ã«æ®ã£ãã¯ã¨ãªåæ°ãå°ãªãï¼ã¨ãã°ã«ã¼ãã®ã½ã¼ãã«ä½¿ããã¯ã¨ãªåæ°ãå°ãªããã¦æ¹é3ããæªãã¹ã³ã¢ã«ãªã£ã¦ãã¾ããããã¨ãããã¨ã
ã¤ã¾ãæ®ãã¯ã¨ãªåæ°ãååã«ããã¨ãã ãã°ã«ã¼ãã®ã¯ã¤ãã¯ã½ã¼ã ããã¦ããã¤ããããã¾ã ã¾ã å
¨ç¶è¶³ããªãã£ãã¨ãããã¨ãããã
æ®ãã¯ã¨ãªåæ°ãQ/2以ä¸ã®ã¨ãã ãã°ã«ã¼ãã®ã¯ã¤ãã¯ã½ã¼ã ãããããã«å¤æ´ããã
æåºã³ã¼ãï¼https://atcoder.jp/contests/ahc025/submissions/46748977
å¾ç¹ï¼543,035,466
æ¹é3ããã¹ã³ã¢ãè¯ããªã£ãã
ä¸è¨ã®æ¹é5ã§ã¯ãæ¹é3ãããµã³ãã«100åä¸ã
5åã¹ã³ã¢ãæªããªã£ã
31åã¹ã³ã¢ãæ¹åããã
64åã¯ã¹ã³ã¢ãå¤ãããªãã£ã
æ¹é6ï¼æ®ãã¯ã¨ãªåæ°ã«å¿ãã¦ç¢ºççã«ã°ã«ã¼ãã®éããåãæ¿ãããããªã¢ã¤ãã 交æã許ã
æ¹é5ã§ã¯ã64åã¯ã¹ã³ã¢ãå¤ãããªãã®ã§ãã£ããããã¯ãã¢ã¤ãã ã®ã½ã¼ãå¾ã«æ®ãã¯ã¨ãªåæ°ãå°ãªãã®ã§æ¹é3ã«åãæ¿ãã£ãåæ°ã64åã¨ãããã¨ã§ãã£ãã
æ¹é3ã®åé¡ç¹ã¯ãªãã ãããã¨ãããã¤ãæªãã¹ã³ã¢ã®ãã®ãããã¯ã¢ãããã¦ã¿ãã
seed62: 157/185
ã·ã¼ã62ã®çµæ
seed66: 438/482
ã·ã¼ã66ã®çµæ
ãã¸ã¥ã¢ã©ã¤ã¶ãåããã¦ã¿ãã¨ãæ®ãã¯ã¨ãªåæ°ãå°ãªãã¨ãã«ãã°ã«ã¼ãéã®éããå
¥ãæ¿ãããããªé ãã¢ã¤ãã ã®äº¤æã許ãã¦ãã¾ã£ã¦ããã
æ®ãã¯ã¨ãªåæ°ãã¾ã æ®ã£ã¦ãã¨ãã¯ã°ã«ã¼ãã®éããå
¥ãæ¿ãã£ã¦ãããããæ®ãã¯ã¨ãªåæ°ãå°ãªãã¨ãã¯ã°ã«ã¼ãã®éããå
¥ãæ¿ãããããªãã¨ã¯ããã軽ãã¢ã¤ãã ã®ããã¨ãã ãã§æ¸ã¾ãã¦ã»ãããã¤ã¡ã¼ã¸çã«ã¯ãå®å®ãããããã¨ãããã¦ã»ããã¨ãã欲æ±ãããã
ãªã®ã§ãæ®ãã¯ã¨ãªåæ°ã«å¿ãã¦ç¢ºççã«ã°ã«ã¼ãã®éããåãæ¿ãããããªã¢ã¤ãã 交æã許ãå®è£
ããããæ°æã¡çã«ã¯ç¼ãéãæ³ã§ããã
æ¹é7ã®ã·ã¼ã62ã®çµæ
æ¹é7ã®ã·ã¼ã66ã®çµæ
ããªãè¯ããªã£ãæããããã®ã§ãæåºããã
æåºã³ã¼ãï¼https://atcoder.jp/contests/ahc025/submissions/46841307
å¾ç¹ï¼492,973,943
æ¹é6ãæçµçµ æã¨ãã¦æåºããã
Aï¼58,654,377,877
A-Finalï¼300,672,027,666
é ä½ï¼458
ããã¾ã§ã®ææ³
æ¹é5ãå®è£
ããæç¹ã§ã®ç¸å¯¾ã¹ã³ã¢ã62Gã§ãé ä½ã¯380ä½ãããã ã£ãããã®å¾ç¹å¸¯ã¯æ¿æ¦åºã§ãå¯ã¦èµ·ãããé ä½ãçµæ§ä¸ãã£ã¦ããã
æ¹é5ãå®è£
ããæç¹ã§é æã¡ãã¦ãã¨æã£ãã®ã ããä¸ä½é£ã90Gã§éæ¹ããªãã£ã
ãå±±ç»ããç¼ããªã¾ãããã¼ã ãµã¼ãã¯çµ¶å¯¾ã«ã§ããªãããªãããããããâ¦ãã¨ããããèãã¦ã
æ¹é6ã¯çºæ³ã¨ãã¦ã¯ããªãç¼ãéãæ³ãªã®ã ããããã«è³ãã¾ã§ããªãæéãè¦ããã
å
¬å¼è§£èª¬
å
¬å¼è§£èª¬åç»ã®ãªã³ã¯
Xï¼Twitter ï¼ã§èª¿ã¹ãã¨å¼·ã人ã¯ã½ã¼ããã¦ä¸çªéããã®ã¨ä¸çªè»½ããã®ã交æãã¦ãã人ãå¤ãã¤ã¡ã¼ã¸ãä¼¼ããããªãã¨ã¯èªåããã¦ããã®ã ããèªåã®è§£æ³ã§ã¯ä¸çªéããã¤ã¨è»½ããã¤ã交æã2çªç®ã«éããã¤ã¨è»½ããã¤ã交æãâ¦ã¨ãã¦ããã®ãè¯ããªãã£ãã®ãï¼
å
¬å¼è§£èª¬ã®åç»ãè¦ã¦ã¿ãã
解æ³1ï¼ã¯ã¨ãªã使ã£ã¦ããã°ã£ã¦éããæ¨æ¸¬ããããã®å¾ã¯ã¨ãªã使ããã«æé©ååé¡ ã解ã
解æ³2ï¼ç¼ããªã¾ãæ³ ï¼è¿å解ãæ±ãã¦ããã®è¿å解ãè¯ããªã£ããæ¡ç¨ãæªããªã£ããæªããªã£ã度åãã«å¿ãã¦ç¢ºççã«æ¡ç¨ï¼ã¯ãä»åã®å¤©ç§¤ã使ã£ãã¯ã¨ãªã§ã¯ãã©ãã ãæªããªã£ããããããããªãã®ã§é£ããï¼ãæªããªã£ããã¯ãããããã©ãã ãæªããªã£ãããã¯ããããªãï¼ããããè¯ããªã£ããã®ã¯å¤å®ã§ããã®ã§ãå±±ç»ãæ³ãå¯è½
åæ解ãé©å½ã«ä½ã£ã¦ãå±±ç»ãæ³ããã
解æ³3ï¼åæ解ã貪欲æ³ã§ä½ã
å
¬å¼è§£èª¬ã§ã¯è§£æ³2ã®å±±ç»ãã解説ãã¦ãããã
å±±ç»ãæ³
2ã¤ã®ã°ã«ã¼ãéã§ã¢ã¤ãã 交æãããã®å³ï¼å
¬å¼è§£èª¬åç»ããå¼ç¨ï¼
2ã¤ã®ã°ã«ã¼ãã®å¤§å°é¢ä¿ãããã£ã¦ããç¶æ
ã§ãã¢ã¤ãã 交æããããã¢ã¤ãã 交æå¾ã2ã¤ã®ã°ã«ã¼ãã®å¤§å°é¢ä¿ãå¤ãã£ã¦ããªãã£ããããã¹ã³ã¢ãè¯ããªã£ããã¨ãããï¼2ã¤ã®ã°ã«ã¼ãéã®åæ£ãå°ãããªã£ã¦ããã®ã§ï¼ã
åºæ¬çã«ã¯ãããã²ãããå±±ç»ã£ã¦ããã°ããã
ãã®è§£æ³ã®ã·ã³ãã«ãªææ³ã§ã¯ã½ã¼ãããå¿
è¦ãªãã¦ãã¢ã¤ãã ãã©ã³ãã ã«1åé¸ã³ããããã©ãã®ã°ã«ã¼ãã«å
¥ããããã©ã³ãã ã«é¸ã¶ãã¢ã¤ãã 交æãã¦ã¹ã³ã¢ãè¯ããªããªã交æããã¹ã³ã¢ãè¯ããªããªããªã交æããªãã
åæ解ã¯åã°ã«ã¼ãåãã¢ã¤ãã ã®åæ°ã«ãªãããã«é©å½ã«å²ãæ¯ãã
ãããããã¨321ä½ãã¨ãããããã
ãã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ããã·ã³ãã«ãªè§£æ³ã«è¦ããããããã§ãååèªåããè¯ãç¹æ°ãåããã¨ãããè¦ãã¨ãèå¯åã足ããªãã¨æããããã£ã¦ããã¨ã¯ãè¨ããã¦ã¿ãã°å½ç¶ã¨ããã°å½ç¶ãã®ãã¨ãªã®ã ããæãã¤ãã¦ãªããã ããªãã
ã¢ã¤ãã 交ææ¹æ³2
ããã²ã¨ã¤ã®ã¢ã¤ãã 交ææ¹æ³ã¨ãã¦ãã°ã«ã¼ãAã¨ã°ã«ã¼ãBããããããã¢ã¤ãã ã1åãã¤åãåºãã¦ãåãåºããã¢ã¤ãã ãã¢ã¤ãã aãã¢ã¤ãã bã¨ããã
ãã®ã¨ãããã°ã«ã¼ãA < ã°ã«ã¼ãBããã¢ã¤ãã a < ã¢ã¤ãã bããªãã°ãã¢ã¤ãã aã¯ã°ã«ã¼ãBã«å
¥ããã¢ã¤ãã bã¯ã°ã«ã¼ãAã«å
¥ããã¨ã¹ã³ã¢ãè¯ããªãã
ã¢ã¤ãã aã¯ã°ã«ã¼ãBã«ãã¢ã¤ãã bã¯ã°ã«ã¼ãAã«å
¥ããã®ãè¯ã
ãã®ãããªã¢ã¤ãã 交æã¯ã¯ã¨ãª2åã®çºè¡ã§è¡ããã
ããã®äº¤ææ³ã50%ã®ç¢ºçã§ãããã¿ããã«çµã¿åãããã¨218 ä½ã«å
¥ãããããã
ãã£ãã·ã¥ãã + æ¨ç§»å¾ã®ã°ã©ããä½ã
ä¸åº¦ãã交ææ¹æ³ã¯ãã£ãã·ã¥ãã¦è¦ãã¦ã2åãããªãããã«ããã¨å°å³ã«è¯ããªãã
ã¢ã¤ãã 交ææ¹æ³2ãããã¨ãã¢ã¤ãã ã®å¤§å°é¢ä¿ã®ãã¼ã¿ãèç©ãã¦ããã
a < b ã®ãããªå¤§å°é¢ä¿ã®ã°ã©ããä½ã£ã¦ããã¨ãa < b 㨠b < c => a < c ã®ããã«ãã¯ã¨ãªãçºè¡ããªãã¦ãæ¨ç§»å¾ã§æ°ãã«å¤§å°é¢ä¿ãå¤æããã
æ¨ç§»å¾ããa < cãå°ã
ãã£ã¨ãããã¨æãã°ä»¥ä¸ã®ããã«å°ããã¨ãã§ããã
a<b 㨠b+c<d ãããa+c < d ãå¤æãã
ããããä¸çå¼ç³»ããããããã£ãã¨ãã«ãã¹ã¦æºãã解ãæ±ããæ¹æ³ã«LPï¼ç·å½¢è¨ç»æ³ ï¼ããããããã
ãããããªãã¦ããã¢ã¤ãã a+cã¨ã¢ã¤ãã dã®äº¤æãã¨ãã£ãè¤æ°åã®äº¤æãå¯è½ã«ãªãã
ãããå®è£
ããã¨200ä½ã«ãªãã
ã°ã«ã¼ãã®ã½ã¼ããå®è£
ãã
ããã¾ã§ã®æ¹æ³ã®åé¡ç¹ã¯ã交æããã°ã«ã¼ããã©ã³ãã ã«é¸ãã§ããã®ãåé¡ã§ãã£ãã
ããã§ã°ã«ã¼ãã®ã½ã¼ããå®è£
ããã¨ãã©ã®ã°ã«ã¼ããã¢ã¤ãã ã交æãã¹ããªã®ãããããã
ä¸çªéãã°ã«ã¼ãã¨ä¸çªè»½ãã°ã«ã¼ããã¢ã¤ãã 交æããã®ãè¯ã
ã¢ã¤ãã 交æå¾ã®ã°ã«ã¼ãã®ã½ã¼ãã¯åç´ã«ããã°O(DlogD)ããã©ããã¯ä»¥ä¸ã®ããã«ãã¦æ¹åã§ããã
ä¸çªéãã°ã«ã¼ããã°ã«ã¼ãAãä¸çªè»½ãã°ã«ã¼ããã°ã«ã¼ãBã¨ãããã¢ã¤ãã 交æå¾ãã°ã«ã¼ãAã¨ã°ã«ã¼ãB以å¤ã®ä»ã®ã°ã«ã¼ãã¯ã½ã¼ãæ¸ã¿ãªã®ã§ããã°ã«ã¼ãAï¼Bï¼ã¯ãã½ã¼ãæ¸ã¿ã®ã°ã«ã¼ãã®ã©ãã«å
¥ãããã2åæ¢ç´¢ããã°O(logD)ã§æ¸ãã確ãã«â¦â¦ã
ãããããã¨49ä½ã«ãªãã
å
¬å¼è§£èª¬ã®ææ³
å
¬å¼è§£èª¬ãè¦ãã¨ãããªããããæãã¤ããªãã£ãã®ãâ¦â¦ãã¨ãã£ãææ³ã«ãªã£ããã½ã¼ããªã©ããã£ã½ããã¨ã¯æãã¤ãã¦å®è£
ã§ãã¦ããã®ã ããåæã®è§£æ³ã®åå°ãè¯ããªãã®ã§ã¹ã³ã¢ã伸ã³ãªãã£ãå°è±¡ãè«ççãªéçãè¦ãã¦ããªãã®ã¨ãããã練度ã足ããªãã