This file contains 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
/* 메모리:2268KB 시간:36ms */ | |
#pragma warning (disable:4996) | |
#include <stdio.h> | |
char str[20000][51]; | |
int tmp[40000]; | |
int n; | |
int strcomp(char *a, char *b) { | |
int i; | |
for (i = 0; a[i] == b[i] && a[i] && b[i]; ++i); |
This file contains 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
/* | |
* [Baekjoon]1504_특정한최단경로 | |
* 메모리 : 13504 KB | |
* 시간 : 160ms | |
*/ | |
#pragma warning (disable:4996) | |
#include <stdio.h> | |
#include <malloc.h> | |
#define NSIZE 801 |
This file contains 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
#pragma warning (disable:4996) | |
/* | |
* 메모리 : O(S) | |
* 시간 : O(N*K) | |
*/ | |
#include <stdio.h> | |
int T, k; | |
char pancake[1001]; | |
int pancake_len; |
This file contains 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
#pragma warning (disable:4996) | |
#include <stdio.h> | |
/* | |
* 속도 : O(N) | |
* 메모리 : O(N) | |
*/ | |
char num[19]; | |
char ans[19]; | |
int len; | |
int get_len(char *str) { |
This file contains 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
#pragma warning (disable:4996) | |
#include <stdio.h> | |
/* | |
* 속도 : O(log K) | |
* 메모리 : O(log N) | |
*/ | |
struct STALL{ | |
long long n; | |
long long k; | |
}; |
This file contains 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
#pragma warning (disable:4996) | |
/* | |
* 시간 : 28ms | |
* 메모리 : 1116kb | |
*/ | |
#include <stdio.h> | |
#define min(a,b) ((a) > (b) ? (b) : (a)) | |
#define max(a,b) ((a) < (b) ? (b) : (a)) | |
int d[2][6]; |