Skip to content

Instantly share code, notes, and snippets.

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int lower_bound(vector<int>& a, int target, int n)
{
int mid, start, end;
start = 0;
end = n;
#include <vector>
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
// 전역 변수를 정의할 경우 함수 내에 초기화 코드를 꼭 작성해주세요.
int solution(int n, vector<vector<int>> data) {
vector<pair<int, int>> data2(n);
for (int i = 0;i < n;i++) {
#include <vector>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
const int MOD = 20170805;
int h[501][501];
int v[501][501];
// 전역 변수를 정의할 경우 함수 내에 초기화 코드를 꼭 작성해주세요.
#include<iostream>
#include<queue>
#include<algorithm>
using namespace std;
const int MAX_SIZE = 20;
int n;
int a[MAX_SIZE][MAX_SIZE];
int dfs(int d) {
if (d == 5) {
int ret = 0;
#include<iostream>
#include<stack>
#include<cstring>
using namespace std;
char a[1000001];
char erased[1000001];
char b[100];
int main() {
scanf("%s", a);
scanf("%s", b);
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int l, c;
cin >> l >> c;
vector<char> a(c);
for (int i = 0; i < c; i++) {
cin >> a[i];
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;
int l, c;
bool check(string password) {
int ja = 0;
int mo = 0;
for (char x : password) {
#include<iostream>
#include<cstring>
using namespace std;
int d[101];
int main() {
int t;
cin >> t;
int n;
while (t--) {
cin >> n;
#include<stdio.h>
#include<cmath>
using namespace std;
int main() {
int t;
scanf("%d", &t);
int n;
while (t--) {
scanf("%d", &n);
printf("%d\n", (int)sqrt(n));
#include<iostream>
#include<string>
#include<cstring>
#include<queue>
#include<algorithm>
using namespace std;
int dist[10000];
void bfs(string a, string b) {
queue<string> q;
q.push(a);