This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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, }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |