2010-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã©ã½ã³ã§å¥è·¡ãèµ·ãã¦åªåãã¡ãã£ãï¼ Marathon Final ä»å¹´ãã24hã«ãªã£ãã®ã§å¤§å¤ã ã£ãã»ã»ã» åé¡æ¦è¦ å´©å£ããæ´çªããã³ã¤ã³ãååããã²ã¼ã ã®AIãä½æãã éè·¯ã¯åä½æéã§1æ©ç§»åã§ãï¼å£ãå£ãã®ã«ã¯Tæéããã éè·¯ä¸ã«ã¯ã¨ããã©ããã«ã³ã¤â¦
ååã®SRMã§LayCurseããã®900ã®è§£æ³ãè¦ã¦æãåºããã®ã§è§£èª¬ã次ã®ããã«ãäºåæ¢ç´¢ã®ä¸ã§å ¨æ¢ç´¢ããã¦ãããããªããã°ã©ã ãèããã int lb = 0, ub = INF; while (ub - lb > 1) { // äºåæ¢ç´¢ int mid = (lb + ub) / 2; boolean tmp = false; for (Staâ¦
id:iwiwiã¨kita_masaã¨ã®ï¼äººã§ãä¸å¹´ã»ã©åããã®ãã³ãæ¸ãã¦ããæ¬ãã¤ãã«çºå£²ããããããã§ãã http://book.mycom.co.jp/book/978-4-8399-3199-5/978-4-8399-3199-5.shtml ã¡ããé«ãã§ãããèªåãã¡ãããã°ã©ãã³ã°ã³ã³ãã¹ãã§å¾ãç¥èããã¦ãã¦â¦
Subgraph Isomorphismããåé¡ æ«å®8ä½ã ãã©ãããããã·ã¹ãã ãã¹ãã§é ä½ãè¶ å ¥ãæ¿ããã¨æãããã®ã§å®å¿åºæ¥ãªã ééã§ãã¦ãã¨ãããªã æ¦ç¥ä¸éè¦ãªã㨠ã¹ã³ã¢ã絶対è©ä¾¡ãªã®ã§ãç¹ã稼ããã¨ããã§ä¸æ°ã«ç¨¼ããªãã¨ãããªã é£ããã±ã¼ã¹ã¯é å¼µâ¦
ããã¾ããæ°å¦çã«å¼ãããã£ã¦ãã¾ã£ãã®ã§ä»å¹´ã¯id:iwiwiã¨äºäººã§åå ã ãã¼ã åã¯HITOCry ååã¯å£åãã©ã½ã³ãªæãã§åæ¥ã§é£½ãã¦ãã¾ã£ãããä»åã¯ãªããé¢ç½ãã£ãã®ã§å®èµ°ããã çµæã¯7ä½ã ã£ãorz ä½æ¥ã¯Gmailãã£ãã+DropBoxã®ãã¡ã¤ã«å ±æã§â¦
ä»å¹´ã¯å人ã§åå ããã 8åå解ãã¦ãå ¨ä½ã§15ä½ãå人ã®é¨ã§ã¯1ä½ã ã£ãã A æ°åãä¸ããããã®ã§ãã½ã¼ãããã¦ãªãããã«ä¸¦ã³æ¿ããåé¡ ããã ã B å¹³é¢ä¸ã«ä¸æ¬ç´ç·ãããããã®ç´ç·ä¸ã¨ä¸ä¸å·¦å³ã¸ã®ç§»åã®ã¿ã«ããäºç¹éã®æçè·é¢ãæ±ããåé¡ äºç¹â¦
TCOã®ã·ã¼ããå¾ãããã«ä¸å¹´ã¶ãã«åæ¦ çµæã¯11ä½orz ã¾ããä¹ ãã¶ãéããä¸ã«æéããªããããã®ã§ãããããªã⦠æ¹éã¯ã¾ããä½æ®µã«ãããã¨ãããããã®æ®µã®é«ãã決ããããã«ã次ã®ããã«å¶ç´ããã¤ãããåé¡ãèããããã解ããã¨ã«ããã i段ç®â¦
CPUå®é¨ãçµäºãã¾ããã æã ã®è¶ kskçã¯ã¹ã¼ãã¼ã¹ã«ã©+åçã¹ã±ã¸ã¥ã¼ãªã³ã°(OutOfOrderå®è¡)ã§100MHzã¨ããã®ãä½æãã17.3sã¨ããè¨é²ã§ããã ãªãã¨ãéå»ã®è¨é²ã¯æãããã®ã®ãåºæ¿ã®å¤æ´ããã£ãã®ã§åç´ã«ã¯æ¯è¼åºæ¥ãªãä¸ãå®ã¯150MHz(ãããã¯â¦
hoså çã®ã»ãã 250 å ¨éã調ã¹ãã ã n=1ã®å ´åãå¿ãã¦åæåºorz ããããåæåºãã¹ã£ã¦åã æåºorzorz 147.68 550 è¦ãç¬éãäºåæ¢ç´¢ï¼2SAT 492.89 1000 ç¾å¨ä½ç½®*å®å ¨ã ã¨åãã£ã¦ããè²ã®éå*å±éºã ã¨åãã£ã¦ããè²ã§ç¶æ æ°ã50^2*2^7*8 ãããDPâ¦
ã¾ããã¦ããããããã®ã»ãã⦠250 ã½ã¼ããã¦ãÎ (a_i-i)è¨ç®ããã ã ããã«æ°ã¥ããªãã¦æéããã£ãorz 239.85 500 ããããããªãã£ãã®ã§ã¨ããããå°ããã®äºã¤åãåºãã¦è¶³ãã®ã¨æããã®ã§å¤§ããæ¹ã«ãã¦ãä¸ã¤ã«ãªãã¾ã§ç¹°ãè¿ãã¼ããã£ã¦ã¿ããâ¦
ãã£ã±ãSRMã¯11:00ãªãã¦ããæ©æã«ãããããããªããï½ 250 1,"11"ã§0è¿ãã¦ã¦åæåºorz è½ã¨ãç©´ãã£ã±ãã§æå¢ãã¾ããã ã¼ã¨æã£ããèªåã®ãè½ã¡ãorzorz 1,"110"ã¨ãã©ãè¦ã¦ã解ããããã⦠Failed System Test 450 å ¨ã¦ã®ãã¤ãç¬ç«ã«èãã¦è¯ãã¦â¦
300 ç´å¾ã¨åå¾ééããããç´å¾ã¨é«ãçãããã¤ä½¿ãæå³ãªãããã¼ã¨ããã£ããããããã§æéããã£ãorz 219.33 500 ãã ã®ãã¤ã¯ã¹ãã©ã ãªã¨æã£ã¦çµãã ããæ大ã±ã¼ã¹å ¥ãã¦ã¿ãã¨1.0sãããããã⦠ããTLEããããã⦠ããèãããç¹è¿½å ããã«ç§»â¦
ãã¡ã®ãã¼ã ã®ã©ã¤ãã©ãªãå ¬éãã¦ããã¾ã ååãã¿ãªã®ã§ããããªã®ãã¤ä½¿ããã ã¼ã¨ããããã¤ã¯ãã°ã£ã¦ããããããªãã§ãhttp://up.chokudai.net/src/chota1219.pdf.html ã±ããã¼ã©ã¯ã¦ãã¨è¿½è¨: äºåã®å ±éé¨åé¢ç©ãã°ã£ã¦ãã®ã§ä½¿ã£ã¡ããã¡ã§ãâ¦
ä»åã®ãï¼åç®ã®ä¸ç大ä¼ã ã£ãã®ã§ãããããã§å¼éã¨ãªãã¾ã èªåã¯å¤§å¦ã«å ¥ã£ã¦ICPCã«åºä¼ã£ãã®ãããã°ã©ãã³ã°ã³ã³ãã¹ãã«åå ãå§ãããã£ããã¨ãªã£ããã¨ããããæ°ããã³ã³ãã¹ãã®ä¸ã§ãä¸çªæ°åãå ¥ãã¦ãã¾ãã ä»å¹´ããã¯éã¡ãã«ãåããâ¦
帰å½ãã¦ããã§å¯ä¸è¶³ããã°ãã£ããã©æ¬ãªICPCã®æ°æ´ããã®ããåå 250 ã¦ãã¨ã¼ã«æ¢ç´¢ãã é ãåããªãã¦è²ã ãã°ã£ãorz 218.76 500 DPããã ã 確çè¨ç®ããã¹ã£ã¦ãªãã足ãã¦1ã«ãªããªãã£ããã©ä¿æ°èããã®ãããã©ãã£ãã®ã§ã¦ãã¨ã¼ã«æ£è¦åããâ¦
éå§ Aãããããã¨æã£ãããããªãæ§æ解æã ã£ãã®ã§ãã¹ãã¦è²ã èªã¿å§ãã Jãç°¡åããã ã£ãã®ã§ãã©ããã¦ãã¨ã¼ã«ãã£ã¦ãéã«åãã ãã¨æã£ã¦ããã ãæ¡å¤é ãã£ã 座æ¨å§ç¸®ããã ãã®Cãããã¾ããçµã¿å§ãã Aãã¾ããã«çµã¿ãªããã¦æåºâAC 1æâ¦
ææ¥ããä¸å½ã®ãã«ãã³ã«è¡ã£ã¦ãã¾ã æ¬çªã¯æ¥æ¬æéã§2æ5æ¥ã®10:30ãããã ãªãã§ãæ°æ¸©ã-30âã¨ããããï¼ å¯ãã®è¦æâ¦
以åO(n log n)ã®ç©ºéå¸å ãçµããã¨ãã¦æ«æãã¦ãã£ã¨æ¾ç½®ãã¦ãããããªãã ã®å¬ã³ã³ãã¹ãã§åºãã®ã§ããããé«éã§æ¥½ãªå®è£ ãèãã¦ã¿ãã ã¨ãããããï¼ç¹ãåãå¹³é¢ä¸ã«ä¹ã£ã¦ãã®ã¯ãªãã¨ãã¦ã 1. ç¹ãå¾ã ã«è¿½å ãã¦ãã 2. å¸å ã®åé¢ãè¦ãããâ¦
éå§ ç°¡åãªåé¡ããªãï¼ï¼ï¼ Jããã ã®DPãªæ°ãããã®ã§æåºãããWAã£ãorz ééãã«æ°ã¥ãã¦ç´ãããäºä¹ã®DPãããªãã¦ä¸ä¹ã«ãªã£ã¦ãã¾ã£ãâ¦ã®ã§ãã¹ ããã¾ããAã®æå°äºä¹æ³ãã£ã¦ãããã1AC 1æéçµé Cã®æ¼¸åå¼ãããã°ã£ã¦ç«ã¦ã¦2ACç® æ©ãã解ãâ¦
250 0.5å»ã¿ã§å ¨é¨è©¦ãã 241.08 500 ä¸çªä¸ã®æ°åã®å¯ä¸ã¯äºé ä¿æ°ã¨ãªãã®ã§ãåæ°å¶ç´ãªãã®ããããµãã¯ã¿ãããªæãã®DPããã ã 430.89 1000 O(NM)ãããã§è§£ã®åå¨å¤å®ãã§ããï¼âãããã ãã¿ã¼ã³è¦ã¤ãã²ã¼ï¼âãããã Challenge ãªã«ãè½ã¨ããã®â¦
250 å¼¾æ§è¡çª=ããæã 242.65 450 ã¾ããã³ã¤ã³ã®éé¡ã決ã¾ã£ã¦ããã貪欲ã«ä½¿ãã ããªã®ã§ãaå以ä¸ã®ã³ã¤ã³ã§båãæããã¨ããã¨æ®ãb%aåãããæªæºã®ã³ã¤ã³ã§æããã¨ã«ãªã ãã£ã¦ã dp[i]:=ä¸çªå°ããã³ã¤ã³ãiåã®æã«å ¨é¨iåæªæºã«ãªãã¾ã§è²ªæ¬²ã«â¦
Petr+ACRushé¨å±ã«ããã£ã¦ãããªã絶æãã 250 ããã©ãããã®ã§24*60*19éãå ¨é¨çæãã¦è©¦ãã 235.46 500 ããã¼modã¨ããªãã£ãããªã¼ãã¼ããã¼ãããããã⦠ã¨ãæã£ãããå ¨ç¶ãããªãã¨ã¯ãªãã£ãï½ ã©ããmod nã§çãããªãããå ¨ãã¿ã¼ã³è©¦ãã¦â¦
ããããæ¹è¯ãããããªãã¾ã¨ãã«ãªã£ãã®ã§ã¨ããããå®æå è§å½¢ã®åæ°ãæ±ãããã¤ã ã¨ã $x1$y1$x2$y2$x3$y3$x4$y4$x5$y5$x6$y6[0x4-y4][x3+y3=x4+y4][x4>x5][y4=y5][y5>y6][x5=x6][x6-y6=1 ãããªå ¥åãä¸ããã¨ã long res = N * (12 + N * (4 + N * (â¦