約 4,394,437 件
https://w.atwiki.jp/azounoman/pages/46.html
2047 Concert Hall Scheduling 問題 http //acm.pku.edu.cn/JudgeOnline/problem?id=2047 解答方針 ホールAをi日目,ホールBをj日目まで利用したときの最大利益をmax[i][j]とし,動的計画法(表は対角線対称になる).i = j のときに注意. 解答例 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n==0) break; ArrayList Request input = new ArrayList Request (); int daymax = 0; for(int i=0;i n;i++){ Request r = new Request(sc.nextInt(),sc.nextInt(),sc.nextInt()); input.add(r); if(daymax r.end) daymax = r.end; } ArrayList ArrayList Request reqs = new ArrayList ArrayList Request (); for(int i=0;i =daymax;i++) reqs.add(new ArrayList Request ()); for(int i=0;i n;i++){ Request r = input.get(i); reqs.get(r.end).add(r); } Solver sol = new Solver(reqs,daymax); System.out.println(sol.solve()); } } } class Solver{ ArrayList ArrayList Request reqs; int daymax; Solver(ArrayList ArrayList Request reqs, int daymax){ this.reqs = reqs; this.daymax = daymax; } public int solve(){ int max[][] = new int[daymax+1][daymax+1]; max[0][0] = 0; for(int k=1;k =daymax;k++){ ArrayList Request lreqs = reqs.get(k); // max[k][0]..max[k][k-1] for(int i=0;i k;i++) max[k][i] = max[k-1][i]; for(int i=0;i k;i++){ for(Request r lreqs){ if(max[r.start-1][i]+r.pay max[k][i]) max[k][i] = max[r.start-1][i] + r.pay; } } // max[0][k]..max[k-1][k] for(int i=0;i k;i++) max[i][k] = max[k][i]; // max[k][k] max[k][k] = max[k-1][k]; int n = lreqs.size(); for(int i=0;i n;i++){ for(int j=i+1;j n;j++){ Request r1 = lreqs.get(i); Request r2 = lreqs.get(j); if(max[r1.start-1][r2.start-1]+r1.pay+r2.pay max[k][k]){ max[k][k] = max[r1.start-1][r2.start-1]+r1.pay+r2.pay; } } } } return max[daymax][daymax]; } } class Request{ int start; int end; int pay; Request(int start, int end, int pay) { this.start = start; this.end = end; this.pay = pay; } }
https://w.atwiki.jp/suffix/pages/277.html
javascript側 form onsubmit ="XMLHttpRequestオブジェクトを作成する関数" input type ="text" name ="sample" ※1 input type ="submit" value="送信" /form function createHttpRequest(){ if(window.XMLHttpRequest){ return new XMLHttpRequest(); } else if(window.ActiveObject){ try{ return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { return null; } } } function XMLHttpRequestオブジェクトを作成する関数(){ var request = createHttpRequest(); request.open("GETやPOST等の指定",URL,同期非同期); request.setRequestHeader( Content-type , application/x-www-form-urlencoded ); request.onreadystatechange = function(){ ※2 if(request.readyState==4){ ※3 読み込んだときの処理を記述。コールバック関数を指定するなど。 } } request.send(データ); ※4 } ※1 結果反映用テキスト。 xmlhttprequestでは$_POST["sample"]には値入らず。 $_POST["sample"]に値として入れるには、request.send(データ)の部分に変数a="値" 変数b="値"という形で送る必要がある。 詳しくは、http //detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1411752859参照。 ※2 readystatechange以外にも以下のようなものがある。 onloadstart, onerror, onabort, onload, onprogress, ontimeout, onloadend ※3 readyStateの4(DONE)とready.statusの200はよく使うので覚えておこう。 ※4 何も送らない場合はrequest.send("")またはrequest.send(null) php側 $phpで使用する変数 = $_POST[ sample ]; ※1 何らかの処理 echo "{ 連想名 $result}";等 ※2 ※1 $_はスーパーグローバル変数と言い、javascript側でGETやPOST指定で送った変数を受け取れる。 ※2 echoを使って結果を書き出すことで、JSON形式での結果がresponseTextとかに返るのでやりやすい。本例はphpだが、サーバー側に選ぶプログラミング言語やフレームワークによって変わってくる。例えば、node.jsならexpresstとかのモジュールを読み込んで、res.send("hoge")。javaならServlet等をextendsし、レスポンスを書き込む等。 参考: http //uhyohyohyo.sakura.ne.jp/javascript/13_1.html http //www.w3.org/TR/XMLHttpRequest2/#interface-xmlhttprequest
https://w.atwiki.jp/psemu/pages/261.html
ゲーム概要(wikipedia) イカサマ麻雀 ゲーム [429] Client error `POST https //webservices.amazon.co.jp/paapi5/getitems` resulted in a `429 Too Many Requests` response { __type com.amazon.paapi5#TooManyRequestsException , Errors [{ Code TooManyRequests , Message The request was de (truncated...) [429] Client error `POST https //webservices.amazon.co.jp/paapi5/getitems` resulted in a `429 Too Many Requests` response { __type com.amazon.paapi5#TooManyRequestsException , Errors [{ Code TooManyRequests , Message The request was de (truncated...)
https://w.atwiki.jp/pqjp/pages/61.html
?xml version="1.0"? TextLibrary Text tag="[QUEST_Q0I3_ACTION]" Fight the Slavers /Text Text tag="[QUEST_Q0I3_FAILURE]" There were more slavers than you thought. You must try again. /Text Text tag="[QUEST_Q0I3_KILL]" The Slavers have been routed. You may now return to the Emperor and tell him of your success. /Text Text tag="[QUEST_Q0I3_RETURN]" Visit the Emperor /Text Text tag="[QUEST_Q0I3_REWARD]" The Emperor is pleased with you. He not only rewards you with gold, but also with a medal. /Text Text tag="[QUEST_Q0I3_STEP1]" You must travel to the Slaver Camp and fight them. /Text Text tag="[QUEST_Q0I3_STEP2]" You must now return to the Emperor for your reward. /Text Text tag="[QUEST_Q0I3_QMNAME0]" Minotaur Slaver /Text Text tag="[QUEST_Q0I3_QMHELP0]" This Minotaur has improved armor and a whip that deals damage whenever he matches Yellow Gems. /Text /TextLibrary
https://w.atwiki.jp/pqjp/pages/130.html
?xml version="1.0"? TextLibrary Text tag="[QUEST_Q1Q8_ACTION]" Make Some Noise /Text Text tag="[QUEST_Q1Q8_ACTION1]" Make More Noise /Text Text tag="[QUEST_Q1Q8_FAILURE]" Kelthurax is still not awake - you might need to make some more noise. /Text Text tag="[QUEST_Q1Q8_MSGA]" You make a lot of noise, but there is no sign of Kelthurax. /Text Text tag="[QUEST_Q1Q8_MSGB]" All the noise you are making has attracted a Wyvern. /Text Text tag="[QUEST_Q1Q8_MSGC]" The sound of combat with the Wyvern seems to have woken Kelthurax. He bursts up out of the ground and confronts you... /Text Text tag="[QUEST_Q1Q8_REWARD]" Kelthurax has ignored your plea for help. It looks like you are on your own! /Text Text tag="[QUEST_Q1Q8_QMHELP0]" This Wyvern seems larger than most. Its stats are slightly higher, especially in Battle and Air Mastery. /Text /TextLibrary
https://w.atwiki.jp/voice2012/pages/127.html
タスク:エルへ調査請求依頼 Thank you for your message. We are sorry to hear that your items have not arrived yet. We would like to request for an investigation on the parcel to our carrier. We will apply tomorrow, and it usually needs 2 weeks ~ 1 month to receive a report from them. Please kindly be patient and wait, as we cannot take any action like refund until we receive their report.
https://w.atwiki.jp/bzspirit/pages/195.html
[429] Client error `POST https //webservices.amazon.co.jp/paapi5/getitems` resulted in a `429 Too Many Requests` response { __type com.amazon.paapi5#TooManyRequestsException , Errors [{ Code TooManyRequests , Message The request was de (truncated...) リリース 1995年11月22日 収録時間 49分57秒 レーベル Rooms RECORDS プロデュース 松本孝弘 収録曲 spirit loose ザ・ルーズ ねがい ( BUZZ!! STYLE) 夢見が丘 BAD COMMUNICATION (000-18) 消えない虹 love me, I love you (with G Bass) LOVE PHANTOMアルバム初収録。 敵がいなけりゃ 砂の花びら キレイな愛じゃなくても BIG drive to MY WORLD spirit loose II 名前 コメント
https://w.atwiki.jp/prima/pages/829.html
[429] Client error `POST https //webservices.amazon.co.jp/paapi5/getitems` resulted in a `429 Too Many Requests` response { __type com.amazon.paapi5#TooManyRequestsException , Errors [{ Code TooManyRequests , Message The request was de (truncated...) Blogs on エルンスト・コツープ #blogsearch レパートリー リヒャルト・ワーグナー [部分編集] リヒャルト・ワーグナー さまよえるオランダ人エリック トリスタンとイゾルデメロート Last Update 2015/07/19 18 32ページ先頭へ
https://w.atwiki.jp/pqjp/pages/179.html
?xml version="1.0"? TextLibrary Text tag="[QUEST_Q2J4_ACTION1]" Battle the Medusa /Text Text tag="[QUEST_Q2J4_ACTION2]" Shop for Griffonskin /Text Text tag="[QUEST_Q2J4_FAILURE]" You have failed to defeat the Medusa. You must try again. /Text Text tag="[QUEST_Q2J4_KILL]" You have defeated the Medusa. You retrieve some blood with which to sign the documents. /Text Text tag="[QUEST_Q2J4_R0]" Jarl apos;s Hammer and Cloak /Text Text tag="[QUEST_Q2J4_R1]" Jotun apos;s Helm and Boots /Text Text tag="[QUEST_Q2J4_RETURN]" Talk to the Giants /Text Text tag="[QUEST_Q2J4_REWARD]" You have succeeded! Jarl and Jotun give you all the items they no longer want. /Text Text tag="[QUEST_Q2J4_STEP1]" You must approach Jarl and Jotun and see if they can reach a truce. /Text Text tag="[QUEST_Q2J4_STEP2]" You must travel to Werret to find a Medusa and to Gruuldok to get some Griffonskin. /Text Text tag="[QUEST_Q2J4_STEP3]" You must return to the Giants apos; Walk to meet with Jarl and Jotun. /Text Text tag="[QUEST_Q2J4_TALK1]" Talk to Jarl /Text Text tag="[QUEST_Q2J4_TALK2]" Talk to Jotun /Text /TextLibrary
https://w.atwiki.jp/tomokazu0525/pages/89.html
■目次 ブラウザごとのXPATH取得と実行google chromeでXPATHgoogle chromeでXPATHを取得する方法 chromeでXPATHを実行する方法 FirefoxでXPATHfirefoxでxpathを取得する方法 ブラウザ上で動いたxpathとjavascript xPathの活用例関連ページ ページフッタこのページの1階層上のページ このページの1階層下のページ このページに含まれるタグ このページへのアクセス数 ■本文 ブラウザごとのXPATH取得と実行 google chromeでXPATH google chromeでXPATHを取得する方法 Chromeだけで任意のノードのXPathを簡単に取得 たぶん革命 chromeでXPATHを実行する方法 Chromeの開発者ツールでxPathを実行する FirefoxでXPATH firefoxでxpathを取得する方法 Firebug で XPath を簡単に試す方法 - IT戦記 コメント:上部のevaluteのみ参考になる。 中盤以降は、ページ下部のコメント欄をみると、もっと簡単な方法があるか。(ブックマークレットのスクリプトをどこに入力するのかわからなかったし。) ブラウザ上で動いたxpathとjavascript var a = document.evaluate( " xpath式 " , document,null,7,null ); alert(a.snapshotLength); for(var i=0; i a.snapshotLength; i++){ alert(a.snapshotItem(i).textContent); } ※最後の部分は、 firefoxではtextContent IEではinnertext。 chromeはどちらでも可。 参照元: innerTextとtextContent - javascript 覚え書き日記 - g javascript Firefoxで、innerTextが使えない(Javascript) Introduction to using XPath in JavaScript - MDC δtech -DeltaTECH- JS document.evaluate()の使い方がやっと分かった… xPathの活用例 今さらだけど $X + GreaseMonkey はまじで最強だなぁ。例えば 2 行で mixi のクローラとか作れちゃうもん - IT戦記 JavaScript-XPathは、tr[@id]型が上手く動かないことがある。 [429] Client error `POST https //webservices.amazon.co.jp/paapi5/getitems` resulted in a `429 Too Many Requests` response { __type com.amazon.paapi5#TooManyRequestsException , Errors [{ Code TooManyRequests , Message The request was de (truncated...) [429] Client error `POST https //webservices.amazon.co.jp/paapi5/getitems` resulted in a `429 Too Many Requests` response { __type com.amazon.paapi5#TooManyRequestsException , Errors [{ Code TooManyRequests , Message The request was de (truncated...) 関連ページ 勉強用メモ - トップページ/windows/プログラミング/XPATH ページフッタ このページの1階層上のページ このページの1階層下のページ Google Chrome 使えなくなった方法 このページに含まれるタグ XPATH このページへのアクセス数 今日: - 昨日: - これまで合計: -