Skip to content

Instantly share code, notes, and snippets.

View vumbumy's full-sized avatar

HanBeom Seo vumbumy

View GitHub Profile
<span class="infocard-tall "><a class="pkg " data-sprite=" pkgG1 n1 " href="/pokedex/bulbasaur"></a><br><small>#001</small><br><a class="ent-name" href="/pokedex/bulbasaur">Bulbasaur</a><br><small class="aside"><a href="/type/grass" class="itype grass">Grass</a> &middot; <a href="/type/poison" class="itype poison">Poison</a></small></span>
<span class="infocard-tall "><a class="pkg " data-sprite=" pkgG1 n2 " href="/pokedex/ivysaur"></a><br><small>#002</small><br><a class="ent-name" href="/pokedex/ivysaur">Ivysaur</a><br><small class="aside"><a href="/type/grass" class="itype grass">Grass</a> &middot; <a href="/type/poison" class="itype poison">Poison</a></small></span>
<span class="infocard-tall "><a class="pkg " data-sprite=" pkgG1 n3 " href="/pokedex/venusaur"></a><br><small>#003</small><br><a class="ent-name" href="/pokedex/venusaur">Venusaur</a><br><small class="aside"><a href="/type/grass" class="itype grass">Grass</a> &middot; <a href="/type/poison" class="itype poison">Poison</a></small></span>
<span c
public static ArrayList < String > getHTML(String urlToRead) {
ArrayList < String > files = new ArrayList < String >();
URL url; HttpURLConnection conn; BufferedReader rd; String line; try {
url = new URL(urlToRead);
conn = (HttpURLConnection)url.openConnection();
conn.setRequestMethod("GET");
rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
while ((line = rd.readLine()) != null) {
files.add(line);
}
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
class JSoupParsing {
public static void main(String[] args){
Document doc = null;
//
// main.cpp
// BOJ
//
// Created by MacBook Air on 2015. 10. 16..
// Copyright (c) 2015년 MacBook Air. All rights reserved.
//
#include <iostream>
#include <vector>
public class Busreserve { //메인 클래스
public static void main(String[] args) {//메인 매소드
HashMap<String, Integer> map = new HashMap<String, Integer>();
/*
ReservedInfo si = new ReservedInfo();//si객체 생성
new StartFrame(); //생성자 호출
*/
try {
Scanner busInfo = new Scanner(new File("ReservedInfo/BusInfo.txt")); // 파일을 가져오고
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpApplication1
{
class C
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
int minDay = 987654321;
for (int i = X; i >= 1; i--) {
int addLine = i;
int pyramidSum = 0;
while (addLine >= 1 && X > pyramidSum) {
pyramidSum += addLine;
if (X <= pyramidSum){
minDay = min(minDay, i);
break;