Skip to content

Instantly share code, notes, and snippets.

View hanjae-jea's full-sized avatar

Hanjae hanjae-jea

View GitHub Profile
import java.util.*;
public class test {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
Deque deque = new ArrayDeque<>();
Map map = new HashMap();
int n = in.nextInt();
int m = in.nextInt();
int uniqueIntegerArray = 0;
int answer = 0;
import java.util.*;
public class test {
static int n,m;
static int uniqueIntegerCount = 0;
static int answer = 0;
static int[] cnt = new int[10000001];
static Deque deque = new ArrayDeque<>();
static void insert(int num)
{
import java.io.*;
import java.util.Scanner;
public class Slipp01{
static int R, C, r, c;
static String G[], P[];
public static void main(String args[]){
Scanner in = new Scanner(System.in);
int test_case = in.nextInt();
Boolean result = false;
import java.io.*;
public class GridSearch{
int R, C, r, c;
String G[], P[];
public static void main(String args[]){
Scanner in = new Scanner(System.in);
int test_case = in.nextInt();
for( int test = 0 ; test < test_case ; test ++){ // T
Boolean result = test(in);
@hanjae-jea
hanjae-jea / challenge.cpp
Created May 28, 2015 01:25
도전 과제 풀기
#include <stdio.h>
#include <vector>
#include <algorithm>
using namespace std;
int n;
int color_weight[2005];
unsigned int answer[2005];
vector< pair<int,int> > table[2005];
@hanjae-jea
hanjae-jea / sample2.cpp
Last active August 29, 2015 14:17
한재한테 과제 부탁
#include <stdio.h>
int main(int argc, char* argv[])
{
int sum = 0;
for( int i = 1 ; i <= 100 ; i ++ ){
sum = sum + i;
}
printf("1 to 100 sum = %d\n");
}
#include <stdio.h>
int main()
{
int i = -1;
printf("i : %u\n", (unsigned int)i);
return 0;
}
package sunwooks;
import java.io.*;
import java.util.Scanner;
public class light {
public static void main(String [] args)throws IOException{
int size;
int [][] area;
package sunwooks;
// 1)차이가뭔지 파일,IOException
// 설명 : IOException은 말 그대로 IO(Input,Output)과정에서 발생하는 예상못한 동작이 발생했을때
// 이 프로그램이 그 에러를 처리하지 않고, 상위 프로그램에 전달한다는 뜻인데, 이거는 Java의 핵심
// 예외 처리 기법이라 알면 좋고, 굳이 여기서 100% 이해할 필요는 없고. 아마 try-catch 배우면서
// 더 자세히 배우게 될꺼야.
// 내가 알기로는 Scanner 클래스는 IOException이 안 일어나는걸로 알고 있는데... 필요한가 보네...
import java.io.File;
#include <stdio.h>
int index = 0;
int main(void)
{
scanf("%s", parser);
expr();
return 0;
}
void match(char t)
{