レス書き込み
スレへ戻る
写
レス栞
レス消
【.cmd】 バッチファイルスクリプト %15 【.bat】
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>287 > >>266 > Ruby なら、 > > require 'json' > > # 改行を削除する。削除しなくても同じ結果 > input_json_str = <<'JSON'.delete( "\n" ) > [{"ID": 1,"Level": 50, "Status": {"idx":1}}, > {"ID": 1,"Level": 100, "Status": {"idx":2}}, > {"ID": 2,"Level": 50, "Status": {"idx":3}}, > {"ID": 3,"Level": 50, "Status": {"idx":4}}, > {"ID": 3,"Level": 100, "Status": {"idx":5}}] > JSON > > input_json_obj = JSON.parse( input_json_str ) > > # ID でグループ化して、最大Level のものを取得する > result = input_json_obj.group_by { |hash| hash[ "ID" ] }.map do |row| > row[ 1 ].max_by { |hash| hash[ "Level" ] } > end > > p result > > 出力 > [ {"ID"=>1, "Level"=>100, "Status"=>{"idx"=>2}}, > {"ID"=>2, "Level"=>50, "Status"=>{"idx"=>3}}, > {"ID"=>3, "Level"=>100, "Status"=>{"idx"=>5}} ]
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.010s