Skip to content

Instantly share code, notes, and snippets.

@yooniversal
yooniversal / 1395.cpp
Last active August 13, 2020 15:36
BOJ 1395
//1395
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
#define INF 987654321
#define MAXSIZE 1000001
@yooniversal
yooniversal / 14268.cpp
Created August 14, 2020 00:58
BOJ 14268
//14268
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
#define INF 987654321
#define MAXSIZE 100001
@yooniversal
yooniversal / 664_A.cpp
Created August 14, 2020 11:54
[Codeforces #664 Div.2] A. Boboniu Likes to Color Balls
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
@yooniversal
yooniversal / 664_B.cpp
Created August 14, 2020 12:04
[Codeforces #664 Div.2] B. Boboniu Plays Chess
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
typedef long long ll;
int n, m, y, x;
bool chk[101][101];
@yooniversal
yooniversal / 664_C.cpp
Created August 14, 2020 12:11
[Codeforces #664 Div.2] C. Boboniu and Bit Operations
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
#define INF 987654321
typedef long long ll;
bool bit[512];
@yooniversal
yooniversal / edu93_A.cpp
Created August 16, 2020 09:55
A. Bad Triangle
#include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
#define INF 987654321
typedef long long ll;
int main() {
cin.tie(nullptr);
@yooniversal
yooniversal / edu93_B.cpp
Created August 16, 2020 10:09
B. Substring Removal Game
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
#define INF 987654321
typedef long long ll;
int main() {
@yooniversal
yooniversal / edu93_C.cpp
Created August 16, 2020 10:12
C. Good Subarrays
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
#include <map>
using namespace std;
#define INF 987654321
#define MAXSIZE 100001
typedef long long ll;
@yooniversal
yooniversal / edu93_D.cpp
Created August 16, 2020 12:57
D. Colored Rectangles
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
#define INF 987654321
#define MAX 201
typedef long long ll;
@yooniversal
yooniversal / 12899.cpp
Created August 16, 2020 13:23
BOJ 12899
//12899
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
using namespace std;
#define INF 987654321
#define MAX 2000001