Y

@yjkim997

백준알파벳

C++
1 year ago
#include <stdio.h> struct node { int x, y; }; int r, c, v[30][30], alpha[30], cnt=0; int dx[4]={1, -1, 0, 0}, dy[4]={0, 0, 1, -1}; char G[30][30]; void dfs(int x, int y) { printf("%c ", G[x][y]);

2024학년도 프로그래밍 I 정답여부 확인 코드

C++
1 year ago
//5번 문항 #include <stdio.h> int a, b, arr[]={1, 3, 4, 4, 4, 7, 9, 9, 10, 11, 12, 47, 47, 50}; //10, 11, 12는 임의의 숫자임 int f1(int k) { int s=0, e=n; while(s<e) { int m=(s+e)/2; if(arr[m]<k) s=m+1; else e=m; }

DSLR

C++
1 year ago
//0에 대해 예외 처리를 해야할 것 같은데,,,,, #include <stdio.h> #include <memory.h> #include <queue> #include <vector> char w[5]="DSLR"; int d[10010]; int A, B; std::queue<int> q;

Codeforces_B

C++
1 year ago
#include <stdio.h> int main() { int t; scanf("%d", &t); for(int i=0; i<t; i++) { int n, m, cnt[100010]={}, flag=1; scanf("%d %d", &n, &m);

BAEKJOON 2805

C++
1 year ago
#include <stdio.h> #include <algorithm> #define ll long long int n, m, arr[1000010]; ll ans; ll bs(int k) { int s=0, e=arr[n]; ll mid;

DREAMHACK

C++
1 year ago
#include <stdio.h> int main() { char s[100]; scanf("%[^\n]s", s); for(int j=0; j<26; j++) { printf("\n%d : ", j+1); for(int i=0; s[i]; i++) {

총총

C++
1 year ago
#include <stdio.h> #include <string.h> struct meet { char p[25]; }; int num; meet s[1010];

BAEKJOON 32647

C++
1 year ago
#include <iostream> #include <vector> #define ll long long #define MAX 50000000 using namespace std; ll A, B, K, cnt, res, vector<ll> prime; void f() {

MatKor7_34168

C++
1 year ago
#include <iostream> #include <math.h> #define ll long long #define MOD 998244353 using namespace std; ll f(ll a) { return a%MOD; }

BAEKJOON 7662

C++
1 year ago
#include <stdio.h> #include <queue> int main() { priority_queue<int, vector<int>, greater<int> > pq, tmp; int t; scanf("%d", &t); for(int i=0; i<t; i++) {

;);)

C++
1 year ago
#include <stdio.h> int cnt[10010]; int main() { int n, m, val=0; scanf("%d %d", &n, &m); for(int i=0; i<n; i++) { for(int j=0; j<m; j++) {

NYPC

C++
1 year ago
#include <stdio.h> #include <vector> using namespace std; struct node { int x; int y; } int x[200010];

28069

C++
1 year ago
//BAEKJOON 28069 #include <stdio.h> #include <memory.h> #define MAX 1000010 int n, k, flag, dt[1000010]; int min(int a, int b) { return (a<b ? a:b); }

cyp

C++
1 year ago
/* //암호화 #include <stdio.h> int cyp[262150]; int pow(int a) { if(a==1) return 0; return 1+pow(a/2); }

kk

C++
1 year ago
#include <iostream> #include <string.h> #include <algorithm> using namespace std; int cnt; //단어 종류 struct word { char s[15]; //단어 int l; //단어 길이

바이토닉(조건을 잘 봐 보자,,,)

C++
1 year ago
//BAEKJOON 11054 #include <stdio.h> int N, arr[1010], dt[1010][2], len; int f(int n, int st) { //st==0 : st==1 : if(dt[n][st]!=-1) return dt[n][st]; else {

,,,

C++
1 year ago
#include <stdio.h> int arr[11][11]; void f(int row, int col) { if(row) ddd else { for(int i=0; i<9; i++) { for(int j=0; j<9; j++) {

????

C++
1 year ago
#include <stdio.h> int abs(int a) { return (a>0? a:-a); } int max(int a, int b) { return (a>b ? a:b); }

1071

C++
1 year ago
//BAEKJOON 1071 //아무리 생각해도 많조분이 아닌데 많조분으로 푸는 나... #include <stdio.h> #include <algorithm> using namespace std; int n, cnt, arr[1010], idx[55]; int main() {

아니메컵 3

C++
1 year ago
#include <stdio.h> int main() { int T; scanf("%d", &T); for(int i=0; i<T; i++) { int N, d, flag=0; scanf("%d", &N); scanf("%d", &d);