#include<iostream> #include<cstring> using namespace std; int sum1=0,sum2=0,Max=0; int n; int a[105][3]; void dg(){ for(int j=0;j<n;j++){ if(a[j][2]==0&&(sum1…
#include<iostream> #include<cstring> using namespace std; int ch[10],ch1[10000][10]; int s[10][2],k=0; void dg(int step){ //cout<<"进入递归"<<step<<endl; i…
#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; }