- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 HDUACM 1009
http://acm.hdu.edu.cn/showproblem.php?pid=1009#include using 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
244
原创 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-1 const 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
169
原创 HDUACM 1008
#include using 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
242
原创 HDUACM 1005
http://acm.hdu.edu.cn/showproblem.php?pid=1005#include #include #include #include using 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
179
原创 HDUACM 1002
http://acm.hdu.edu.cn/showproblem.php?pid=1002#include #include using 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
177
原创 HDUACM 1000
#include using 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
188
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人