文章列表

筛选

两个有序数组合并

摘要:#include "iostream" #include "cstdio" using namespace std; int main() { int m,n; int i,j=0,k,t……

大数减法运算

摘要:#include <stdio.h>          #include <string.h>  int compare(int*,int*);   void swap(int* ,int* )……

大数加法运算

摘要:#include "stdio.h" #include "string.h" int main() { char s1[100],s2[100]; int m,n; int c,i,k; ……

凑算式(蓝桥杯真题)

摘要:/*凑算式     B      DEFA + --- + ------- = 10     C      GHI    这个算式中A~I代表0~9的数字,不同的字母代表不同的数字。*/ #inclu……

书上的纵横图

摘要:#include <stdio.h> #include <stdlib.h> #define MAXSIZE 20 int main() {     int m, magic[MAXSIZE……

the problem 3n+1

摘要:#include "iostream" using namespace std; int main() { int m,n,max,tmp,cnt; while(cin >> m >> n)……

动态规划(01背包)

摘要:01背包这个算法是用来解决1100:采药这类题的。所以举采药这个例子。1100:采药辰辰是个天资聪颖的孩子,他的梦想是成为世界上最伟大的医师。为此,他想拜附近最有威望的医师为师。医师为了判断他的资质,……

1023解题分享

摘要:#include<stdio.h>int main(){   int a[10],p,min;   for(int k=0;k<10;k++)//输入   {      scanf("%d",&a[k……

1075 台球碰撞

摘要:#include <stdio.h>#include<math.h>#define M_PI 3.14159265358979323846 /* pi */int L=600,W=600,R=30,a……

多个数字相乘求个位数字是什么

摘要:问题 A: 巨大的数时间限制: 1Sec 内存限制: 128MB 提交: 93 解决: 25题目描述给你n个数 ai,求这n个数相乘之后的积的个位数字是多少,0 < n,ai <= 100输入共两行,……