- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 HDU1006
#include #include #include #include #include #include using namespace std; double d; struct interval { double left; double right; }; interval solve(double a,double b){//解方程 //Angle<=v*t+a<=360-
2016-01-29 21:25:38 316
原创 HDU1004
#include #include #include #include using namespace std; int main() { int t; while(cin>>t) { if(t==0) break; string color[1001]; for(int i=0;i<t;i++) { cin>>color[i]; } sort(colo
2016-01-28 18:59:14 298
原创 HDU1003 动态规划入门经典题
#include using namespace std; int main() { int t; cin>>t; for(int i=0;i<t;i++)//这道题要求连续区间所求和最大,则每次累加的值必须是正数,才能达到和最大 { int temp,result,pos=0,start=0,end=0; //result代表所求的最大和 int n,a; cin>>n;
2016-01-27 22:52:32 291
原创 HDU1002
#include using namespace std; int main() { int t; cin>>t; for(int i=1;i<=t;i++) { string str1,str2; cin>>str1>>str2; string s1=str1,s2=str2; int len1=str1.size(),len2=str2.size(); if
2016-01-27 17:23:52 221
原创 各整形的数据范围
unsigned int 0~4294967295 (2^32-1) int -2147483648~2147483647 (-(2^31-1)~2^31-1) unsigned long 0~4294967295 (2^32-1) long -2147483648~2147483647 (-(2^31-1
2016-01-24 17:28:10 636
原创 大数乘法a*b
Description Given two positive integers a and b, please help us calculate a*b. Input The first line of the input is a positive integer T. T is the number of test cases followed. Each test ca
2016-01-18 20:35:03 299
原创 初次使用结构体解决学生成绩排列问题
Sorting students on grades Description Rewrite Listing 6.12, GradeExam.cpp, to display the students in increasing order of the number of correct answers. Suppose the answers for all student
2016-01-06 17:10:51 724
转载 用归并排序处理逆序对问题
首先了解一下什么是逆序对, 对于一个包含N个非负整数的数组A[1..n],如果有i A[ j ],则称(A[ i] ,A[ j] )为数组A中的一个逆序对。 例如,数组(3,1,4,5,2)的逆序对有(3,1),(3,2),(4,2),(5,2),共4个。 然后了解一下什么是归并排序: void Merge(int a[] , int low, int mid, int
2016-01-03 00:19:12 759 1
锋利的jQuery第二版源码
2017-09-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人