Q

@qazsxc2

15663 NM9

C++
1 day ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; int num[10]; int is_used[10]; void NM(int now_n){ if(now_n==m) {

15657 NM8

C++
2 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; int num[10]; void NM(int now_n,int last){ if(now_n==m) { for(int i=0; i<m; i++) {

1182 부분수열의 합

C++
5 days ago
#include <iostream> using namespace std; int n,m; int cnt; int num[25]; void fun(int last,int total) { for(int i=last; i<n; i++) { if(total+num[i]==m) cnt++; fun(i+1,total+num[i]); }

1182 부분수열의 합

C++
6 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; bool isused[25]; int num[25]; int total=0; int cnt=0 void func(int now_n,int total){

9663 N-Queen

C++
6 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int cnt=0; //열 col bool isin1[100]; //y=x 대각선 r+c bool isin2[100];

15656 N과 M(7)

C++
6 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; int num[10]; void NM(int now_n){ //기저 if(now_n==m) {

15655 N과 M(6)

C++
6 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; int num[10]; void NM(int now_n,int last){ //기저 if(now_n==m) {

15654 N과 M(5)

C++
6 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; int num[10]; bool isused[10]; void NM(int now_n){ //기저

15652 N과M (4)

C++
6 days ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; void NM(int now_n,int last){ //기저 if(now_n==m) { for(int i=0; i<m; i++) {

15651 N과 M(3)

C++
1 week ago
#include <bits/stdc++.h> using namespace std; //14888 ㄱㄱ int n,m; int arr[10]; void NM(int now_n){ if(now_n==m) { for(int i=0;i<m; i++) { cout << arr[i] << ' ';

15650 N과M(2)

C++
1 week ago
#include <bits/stdc++.h> using namespace std; int n,m; int arr[10]; bool is_used[10]; /*void NM(int now_n,int last) { if(now_n==m) { for(int i=0; i<m; i++) { cout << arr[i] << ' ';

15649 N과M(1)

C++
1 week ago
#include <bits/stdc++.h> using namespace std; int n,m; int arr[10]; bool isused[10]; void NM(int now_num) { //base condition if(now_num==m) {

14956 Philosopher's Walk

C++
1 week ago
#include <bits/stdc++.h> #define X first #define Y second using namespace std; pair<int,int> solve(int n,int m) { if(n==2) { if(m==1) return {1,1}; else if(m==2) return {1,2}; else if(m==3) return {2,2};

2448 별

C++
1 week ago
#include <bits/stdc++.h> using namespace std; char board[3100][6500]; //xy를 좌표 말고 행열로 생각하기 !!!!!!!!!!!!!!!!!! void star(int row,int col,int n) { if(n==3) { //맨위 board[row][col]='*'; //중간 board[row+1][col+1]='*';

2448 별

C++
1 week ago
#include <bits/stdc++.h> using namespace std; char board[3100][6500]; //xy를 좌표 말고 행열로 생각하기 !!!!!!!!!!!!!!!!!! void star(int x,int y,int n) { if(n==3) { //젤위 board[x][y]='*'; //중간 board[x+1][y+1]='*';

2447 별

C++
1 week ago
#include <bits/stdc++.h> using namespace std; char board[2500][2500]; void star(int x,int y,int n) { if(n==1) { board[x][y]='*'; return; } for(int i=0; i<3; i++) { for(int j=0; j<3; j++) {

1992 쿼드트리

C++
2 weeks ago
#include <bits/stdc++.h> using namespace std; int n; string board[70]; bool check(int x,int y,int n) { for(int i=x; i<x+n; i++) { for(int j=y;j<y+n;j++) { if(board[x][y]!=board[i][j]) return false; } }

2573 빙산

C++
1 month ago
#include <bits/stdc++.h> using namespace std; #define X first #define Y second int n, m, year=0; int area[303][303]; int vis[303][303]; int dx[] = {1, 0, -1, 0};

2146 다리만들기 별해

C++
1 month ago
#include <iostream> #include <string> #include <queue> #include <algorithm> using namespace std; #define X first #define Y second int board[102][102]={0};

3986 좋은단어

C++
1 month ago
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int res=0; int n; cin >> n; while(n--){