Skip to content

Instantly share code, notes, and snippets.

View nineteeneightyfour1219's full-sized avatar

nineteeneightyfour1219

View GitHub Profile
#include <iostream>
using namespace std;
int n,k;
int check = 1;
int checking = 0;
int arraying[1000][15] = { 0, };
int sum1[1000] = { 0, };
int total[1000] = { 0, };
int arr[15] = { 0, };
bool used[15] = { 0, };
@nineteeneightyfour1219
nineteeneightyfour1219 / solution4948.c
Created October 30, 2020 05:42
boj4948(베르트랑공준)
#include<stdio.h>
#include<math.h>
int odd(int x)
{
int j,check;
int sum=0;
for (int i=x+1;i<=2*x;i++)
{
check=0;
j=sqrt(i);
@nineteeneightyfour1219
nineteeneightyfour1219 / boj11866.cpp
Created October 30, 2020 05:37
BOJ 11866(요세푸스 문제)
#include<iostream>
#include<queue>
using namespace std;
int main(){
int N,K;
cin >> N;
cin >> K;
queue<int> q;
for (int i=1;i<=N;i++){
q.push(i);