| layout | title | short_title | tags | post_author | created_on |
|---|---|---|---|---|---|
post |
記事のタイトル |
記事の短いタイトル |
号数 種別 |
書いた人の名前やハンドル名など |
記事リリース日 |
{% include base.html %}
| require 'net/http' | |
| require 'uri' | |
| uri = URI('https://discordapp.com/api/webhooks/736094244837654548/V2ayVpXPVeXRxsah3Rk3D2ef0Z94hqzvXVqOTNsUBhU4iPVmb-CoHWHid1iTuvtaup3D') | |
| res = Net::HTTP.post_form(uri, {"content": "Hello from Ruby"}) | |
| puts res.body |
| def readfile( fn ) | |
| fp = open( fn ) | |
| str = "" | |
| fp.each_line.map { |ln| | |
| ln.split(",").map { |n| n.to_i } | |
| } | |
| end | |
| def solveNumPlace(problem, stack) | |
| memory = {candidate: [], row: 0, col: 0, problem: []} |