- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 HDUACM 1009
http://acm.hdu.edu.cn/showproblem.php?pid=1009#includeusing namespace std;const double max==10000000000000000;int main(void){ int M,N; while(cin>>M>>N&&(N!=-1||M!=-1)) { int *
2014-07-07 16:55:52
284
原创 DES
#include #include using namespace std;//左移位数表const int L[16]={1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1};//PC-1const int PC_1[56]={57,49,41,33,25,17, 9, 1,58,50,42,34,26,18,10, 2,59,51,43,35,27,19,11,
2014-07-07 16:46:26
214
原创 HDUACM 1008
#includeusing namespace std;int main(void){ int n; int sum; while(cin>>n&&n!=0) { sum=0; int *a=new int[n]; for(int i=0;i<n;i++) { cin>>a[i]; } sum+=a[0]*6+5*n; int j=1; whi
2014-07-07 16:42:57
287
原创 HDUACM 1005
http://acm.hdu.edu.cn/showproblem.php?pid=1005#include #include #include #includeusing namespace std; int rec[51]; int main(){ int a, b, n; rec[0] = rec[1] = rec[2] = 1; while(
2014-07-07 16:41:16
220
原创 HDUACM 1002
http://acm.hdu.edu.cn/showproblem.php?pid=1002#include#includeusing namespace std;int main(void){ int n; cin>>n; for(int i=0;i<n;i++) { char a[1000],b[1000]; cin>>a>>b; int strlena=strl
2014-07-07 16:32:20
214
原创 HDUACM 1000
#includeusing namespace std;int main(void){ int a; int b; while(cin>>a>>b) { cout<<a+b<<endl; } return 0;}
2014-07-07 16:22:56
237
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人