#include<iostream> using namespace std; int arrA[100005]; int arrB[100005]; int arrC[100005]; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ cin>>arrA[i]; } for(int i=…
#include<iostream> #include<cstring> #include<algorithm> using namespace std; #define INF 100000 int arr[100][100]; int n; int f(int v0){ int s[100]; int path[100]; i…
#include<iostream> #include<cstring> #include<algorithm> #include<vector> #include<cmath> using namespace std; int main(){ int n; vector<string> vec; vector&…
#include<iostream> #include<cstring> #include<vector> #include<cmath> #include<algorithm> using namespace std; vector<string> v; vector<int> vc; int str2i…
#include<iostream> using namespace std; int main(){ int count=0; for(double a=1;a<=9;a++){ for(double b=1;b<=9;b++){ for(double c=1;c<=9;c++){ for(double d=1;d<…
#include <stdio.h> #include<iostream> using namespace std; #define N 6 #define M 5 #define BUF 1024 void f(int a[], int k, int m, char b[]) { int i,j; //cout<<"k:"…
#include<iostream> #include<cmath> using namespace std; int main(){ long long sum=1; int count=0; for(int i=0;i<100;i++){ long long temp; cin>>temp; sum=sum*temp; lon…
#include<stdio.h> int main() { for(int i=0;i<9;i++) { for(int j=0;j<(i+1);j++) { printf("%d*%d=%d ",j+1,i+1,(j+1)*(i+1)); } printf("\n"); } return 0; }
#include<iostream> #include<cstring> #include<algorithm> using namespace std; double arr[33][33]; int arrfinal[33][33]; int main(){ memset(arr,0,sizeof(arr)); memset(…
#include<iostream> #include<stdlib.h> #include<time.h> #include<iomanip> using namespace std; int main() { srand((int)time(0)); int a,b,c,d,e,b1,c1,d1; a=(rand()%2…