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 <cstdio> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
#define MAX_N 1000001 | |
char t[MAX_N], p[MAX_N]; | |
int n, m; | |
vector<int> res; | |
int fail[MAX_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 <iostream> | |
#include <cstring> | |
using namespace std; | |
int main() | |
{ | |
/* | |
char char_arr[5] = { 'A','P','P','L','E' }; | |
char char_arr[5]="APPLE"; | |
어째서 에러가 날까? |
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 <iostream> | |
#include <cstdio> | |
#include <algorithm> | |
#include <string> | |
#include <cstring> | |
using namespace std; | |
#define MAX_N 500001 | |
char hear[MAX_N][21]; | |
char see[21]; | |
char hearsee[MAX_N][21]; |
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
//failfunction의 값들을 알고 있는 경우 | |
#include <cstdio> | |
#include <cstring> | |
#include <vector> | |
using namespace std; | |
const int MAX = 1000000; | |
int main(){ | |
char W[MAX+1], S[MAX+1]; | |
int M, 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
//2042-구간합구하기 | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int n, m, k; | |
long long seg[5000000]; | |
long long update(int pos, int val, int node, int x, int y) { | |
/*재귀함수의 기저조건*/ |
NewerOlder