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.*; | |
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; |
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.*; | |
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) | |
{ |
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.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; |
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.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); |
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
#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]; |
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
#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"); | |
} |
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
#include <stdio.h> | |
int main() | |
{ | |
int i = -1; | |
printf("i : %u\n", (unsigned int)i); | |
return 0; | |
} |
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 sunwooks; | |
import java.io.*; | |
import java.util.Scanner; | |
public class light { | |
public static void main(String [] args)throws IOException{ | |
int size; | |
int [][] area; |
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 sunwooks; | |
// 1)차이가뭔지 파일,IOException | |
// 설명 : IOException은 말 그대로 IO(Input,Output)과정에서 발생하는 예상못한 동작이 발생했을때 | |
// 이 프로그램이 그 에러를 처리하지 않고, 상위 프로그램에 전달한다는 뜻인데, 이거는 Java의 핵심 | |
// 예외 처리 기법이라 알면 좋고, 굳이 여기서 100% 이해할 필요는 없고. 아마 try-catch 배우면서 | |
// 더 자세히 배우게 될꺼야. | |
// 내가 알기로는 Scanner 클래스는 IOException이 안 일어나는걸로 알고 있는데... 필요한가 보네... | |
import java.io.File; |
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
#include <stdio.h> | |
int index = 0; | |
int main(void) | |
{ | |
scanf("%s", parser); | |
expr(); | |
return 0; | |
} | |
void match(char t) | |
{ |