This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class Koi_Seat { | |
| public static void main(String[] args) { | |
| Scanner in = new Scanner(System.in); | |
| int y = in.nextInt(); | |
| int x = in.nextInt(); | |
| int targetNumber = in.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo; | |
| import java.util.Scanner; | |
| public class Koi_Bal { | |
| public static void main(String[] args) { | |
| Scanner in = new Scanner(System.in); | |
| int n = in.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Arrays.sort(array, new Comparator<int[]>() { | |
| @Override | |
| public int compare(int[] a, int[] b) { | |
| System.out.printf("%d %d\n", a[1], b[1]); | |
| // 에러 구문 | |
| // return (a[1] < b[1]) ? -1 : 1; | |
| // 수정 구문 | |
| return (a[1] <= b[1]) ? -1 : 1; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| public class Koi_Delivery { | |
| public static void main(String[] args) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| public class Problem1370 { | |
| public static void main(String[] args) { | |
| Scanner in = new Scanner(System.in); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 회의실배정 1669 | |
| * | |
| * 소시지의 길이 기준으로 오름차순정렬 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo; | |
| import java.util.Arrays; | |
| import java.util.Scanner; | |
| /** | |
| * http://59.23.113.171/pool/koi_budget/koi_budget.php?pname=koi_budget | |
| * 더블릿, 예산 | |
| * | |
| * @author whitebeard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| public class Problem2247 { | |
| public static void main(String[] args) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| startDate=`date +"%Y%m%d" -d "20160101"` | |
| endDate=`date +"%Y%m%d" -d "20160701"` | |
| while [ "$startDate" != "$endDate" ] ; | |
| do | |
| startDate=`date +"%Y%m%d" -d "$startDate + 1 day"`; | |
| echo $startDate | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 테이블 생성 | |
| CREATE TABLE STUDENT | |
| ( | |
| STD_ID INT, | |
| STD_NAME STRING, | |
| AGE INT, | |
| ADDRESS STRING | |
| ) | |
| CLUSTERED BY (ADDRESS) into 3 buckets | |
| ROW FORMAT DELIMITED |