#include<iostream> #include<cstring> using namespace std; int arr_num[10][2]; int count=0; int judge(int arr[3][4],int x,int y,int temp){ if(x-1>=0&&y-1>=0){ if(…
#include<iostream> #include<cstring> using namespace std; int dx[]={0,0,1,-1}; int dy[]={1,-1,0,0}; int arr[7][7]; void dfs(int start,int x,int y){ if(y==6&&x==(…
#include<iostream> #include<string> #include<cstring> using namespace std; int add(int obj1,int obj2){ int obj3; obj3=obj1+obj2; return obj3; } int subtract(int obj1,…
#include<iostream> #include<vector> using namespace std; int CompactIntegers(vector<int> vec,int len){ int sum=0; for(int i=0;i<vec.size();i++){ if(vec[i]!=0){ sum…
#include<iostream> using namespace std; int main(){ int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ if(n%i==0){ sum++; } } cout<<sum; return 0; }
#include<iostream> #include<cstring> using namespace std; void print(char ch1[4]){ char ch2[26][4]; ch2[0][0]='*';ch2[0][1]='-';ch2[0][2]='a';ch2[0][3]='a'; ch2[1][0]='-…
#include<iostream> #include<cstring> using namespace std; int array[210][3]; int array1[210][2]; int n,m,MAX=0; int w=0,v=0,temp=0; void search(int step){ cout<<"s…
#include<iostream> #include<cstring> using namespace std; int n,m,x,y,sum=0; int array[1100][1100],beUsed[1100]; void search(int x){ if(x==y-1){ sum++; } else{ for(int i…
#include<iostream> #include<cstring> using namespace std; int main(){ int n,arr[22],arr2[22][2]; memset(arr2,0,sizeof(arr2)); cin>>n; for(int i=0;i<n;i++){ cin>>arr[i…
#include<iostream> using namespace std; bool judge(char temp,char arr2[100]){ int j=0; while(arr2[j]!='\0'){ if(temp==arr2[j]||temp-'0'==arr2[j]-'0'+32||temp-'0'==arr2[j]-'…