错误票据test
#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…
包子凑数
#include<iostream> using namespace std; int n; int arr[105]; int flag=0; bool judge(int x,int y){ cout<<"x:"<<x<<"y:"<<y<<endl; if(x==1||y==1)…
Torry的困惑(基本型)
#include<iostream> #include<cstring> using namespace std; int arr[1300005]; void f(){ memset(arr,0,sizeof(arr)); arr[0]=1; arr[1]=1; int count=0; for(int i=2;i<130000…