| layout | post |
|---|---|
| title | 記事のタイトル |
| short_title | 記事の短いタイトル |
| tags | 号数 種別 |
| post_author | 書いた人の名前やハンドル名など |
| created_on | 記事リリース日 |
{% 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: []} |