Posts
Q&A
๋์์ฃผ์ธ์ chronoUnit์ด ์์ด์!
์๋ ํ์ธ์ ํน์ ํด๊ฒฐํ์ จ๋์?์ ๋ ๊ฐ์ ๋ฌธ์ ๋ฅผ ๊ฒช์ด์ ์ฐพ์๋ณด๋ ์ธํ ๋ฆฌ์ ์ด ๋ฒ์ ๋ฌธ์ ๋๋ผ๊ณ ์ ๋ฒ์ ์ ํ์๋ฉด ์๋ง ๋์ค ๊ฑฐ ๊ฐ์์
- 0
- 3
- 503
Q&A
๊ฐ์ ๋ณด์ง ์๊ณ ํผ์ ํ์๋๋ฐ
์ฐพ์์ต๋๋ค์ฑ์ ์ฌ์ดํธ ๊ฒฐ๊ณผ์์ ๋ณผ ์ ์๊ตฐ์ ใ ใ ๊ฐ์ฌํฉ๋๋ค!
- 0
- 2
- 639
Q&A
์ํ 1090
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; /** * ์ฒด์ปค ํ๋ ํฐ๋4 * ์ธํ๋ฐ ์๊ณ * ๋ฏธ์ * 1. x,y ๋ฐ๋ก ๊ณ์ฐํด์ ๋ํด ์ต์๊ฐ ๊ตฌํ๊ธฐ * 2. ์ ๋ ฅ์ผ๋ก ๋ค์ด์ค๋ ์ขํ๊ฐ์ x,y ์ขํ๋ง๋ค ํ์ํด์ผ ํจ * 3. ์ขํ๋ง๋ค ์ต์ ๊ฑฐ๋ฆฌ๊ฐ ์๊ณ ๊ฑฐ๊ธฐ์ ๊ฐ์ฅ ๊ฐ๊น์ด๊ฑฐ ๊ฐ์ ธ์ค๋ฉด ๋จ * 4. ๋๊ฐ ์ฌ๊ฑด์ง ์๊ด์ด ์์ */ public class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List list = new ArrayList(); Set xList = new HashSet(); Set yList = new HashSet(); int n = Integer.parseInt(br.readLine()); //์ ๋ ฅ๋ฐ๊ธฐ for(int i=0;i distance = new ArrayList(); Object[] xArr = xList.toArray(); Object[] yArr = yList.toArray(); for(int i=0;i dist = cord.getDistance(); for(int j=0;j dist = distance.get(j).getDistance(); int sum = 0; for(int k=0;k distance; public Coord(int x, int y) { this.x = x; this.y = y; this.distance = new ArrayList(); } public int getX() { return x; } public int getY() { return y; } public List getDistance(){ return distance; } } ์ด๋ ๊ฒ ํด์ ๋ง๊ธด ๋ง์๋ค์..
- 1
- 2
- 388
Q&A
MongoParseError: options usecreateindex, usefindandmodify are not supported
์ค~ ๊ฐ์ฌํด์
- 17
- 3
- 581