- 博客(5)
- 收藏
- 关注
转载 字符串处理 算法提高 身份证号码升级http://lx.lanqiao.cn/problem.page?gpid=T325
#include <stdio.h>#include <string.h>int main(){ long long int a,b,c,d,n=0,m,l=16; char o; int A[17]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2};//用数组储存 scanf("%...
2016-12-13 21:02:00 222
转载 字符串处理 吃糖果http://acm.hdu.edu.cn/showproblem.php?pid=1205
//注意 只要除数目最多多糖果以外的其他所有糖果的数目之和加一大于数目最多的这种糖果数目,就能吃完,否则不能。#include <stdio.h>int main(){ int a,b,c,d=0; scanf("%d",&a);//输入循环次数 while (a--) { scanf("%d",&b...
2016-12-13 20:11:00 77
转载 字符串处理 吃鸡腿http://acm.hdu.edu.cn/showproblem.php?pid=4525
这个题目需要简化,就是上一次的和乘上(k1+k2),a1*k1+a1*k2+a2*k1+a2*k2....=sum(k1*k2)#include <stdio.h>int main(){ int t, T, n, i; double k1, k2, k, sum;//不要忘记忽略小数 int a[10010]; ...
2016-12-13 13:32:00 149
转载 字符串处理 为什么时光不能倒流http://acm.hdu.edu.cn/showproblem.php?pid=4510
#include<stdio.h>int main(){ int a,b,c; int d,e,f; int m,n,t,s,h,k,l; scanf("%d",&t);//输入运行的次数 while(t--)//循环t次 { scanf("%d:%d:%d %d:%d:%d",...
2016-12-13 12:28:00 77
转载 字符串处理 最佳裁判http://acm.hdu.edu.cn/showproblem.php?pid=4520
#include <stdio.h>int main(){ int N; scanf("%d",&N);//先输入 double a[N],b[N],c,d=0,o[N-1],e,f;//这里定义3个数组下面会用到 for (int i=0; i<N; i++) { scanf("%lf",&...
2016-12-12 21:07:00 74
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人