锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲在线网站,国产亚洲一级高清,欧美福利影院http://m.shnenglu.com/justin-shi/category/6139.html鍔姏鍋氫竴涓悎鏍肩殑鐢蜂漢銆傘傘?/description>zh-cnTue, 20 May 2008 00:25:58 GMTTue, 20 May 2008 00:25:58 GMT60hdoj1002http://m.shnenglu.com/justin-shi/articles/42661.html騫藉菇騫藉菇Tue, 12 Feb 2008 07:38:00 GMThttp://m.shnenglu.com/justin-shi/articles/42661.htmlhttp://m.shnenglu.com/justin-shi/comments/42661.htmlhttp://m.shnenglu.com/justin-shi/articles/42661.html#Feedback0http://m.shnenglu.com/justin-shi/comments/commentRss/42661.htmlhttp://m.shnenglu.com/justin-shi/services/trackbacks/42661.htmlA + B Problem II
璁$畻涓や釜1000浣嶄互鍐呮暣鏁扮殑鍜?br>杈撳叆
2
1 2
112233445566778899 998877665544332211

杈撳嚭
Case 1:
1 + 2 = 3

Case 2:
112233445566778899 + 998877665544332211 = 1111111111111111110

#include <iostream>
 
using namespace std;

int main()
{
    
int T, count_T;
    
char a[1001], b[1001], ans[1002];
    cin 
>> T;
    
for(count_T=1; count_T <= T; count_T++{
        cin 
>> a >> b;
        
if(count_T==1{
            cout 
<< "Case " << count_T << ":" << endl;
        }

        
else {
            cout 
<< "\nCase " << count_T << ":" << endl;
        }

        cout 
<< a << " + " << b << " = ";
        
int la=strlen(a)-1, lb=strlen(b)-1, sign=0, i;
        
for(i=0;la>=0 && lb>=0; la--,lb--,i++{
            sign 
+= a[la] + b[lb] - '0' - '0';
            ans[i] 
= sign % 10;
            sign 
/= 10;
        }

        
for(; la>=0; la--, i++{
            sign 
+= a[la] - '0';
            ans[i] 
= sign % 10;
            sign 
/= 10;
        }

        
for(; lb>=0; lb--, i++{
            sign 
+= b[lb] - '0';
            ans[i] 
= sign % 10;
            sign 
/= 10;
        }

        
if(sign) {
            ans[i] 
= sign;
            i
++;
        }

        
for(i--; i>=0; i--{
            cout 
<< (char)(ans[i] + '0');
        }

        cout 
<< endl;
    }

    
return(0);
}



騫藉菇 2008-02-12 15:38 鍙戣〃璇勮
]]>
hdoj1001http://m.shnenglu.com/justin-shi/articles/42660.html騫藉菇騫藉菇Tue, 12 Feb 2008 07:36:00 GMThttp://m.shnenglu.com/justin-shi/articles/42660.htmlhttp://m.shnenglu.com/justin-shi/comments/42660.htmlhttp://m.shnenglu.com/justin-shi/articles/42660.html#Feedback0http://m.shnenglu.com/justin-shi/comments/commentRss/42660.htmlhttp://m.shnenglu.com/justin-shi/services/trackbacks/42660.htmlSum problem
璁$畻1+2+3+...+n

#include<iostream>
using namespace std;
int main()
{
    
int n, temp, sum;
    
for(;cin>>n;){
        sum
=0;
        
for(temp=1; temp<=n; temp++)
            sum
+=temp;
        cout 
<< sum << endl << endl;
    }

    
return(0);
}




 



騫藉菇 2008-02-12 15:36 鍙戣〃璇勮
]]>
hdoj1000http://m.shnenglu.com/justin-shi/articles/42545.html騫藉菇騫藉菇Tue, 05 Feb 2008 12:37:00 GMThttp://m.shnenglu.com/justin-shi/articles/42545.htmlhttp://m.shnenglu.com/justin-shi/comments/42545.htmlhttp://m.shnenglu.com/justin-shi/articles/42545.html#Feedback0http://m.shnenglu.com/justin-shi/comments/commentRss/42545.htmlhttp://m.shnenglu.com/justin-shi/services/trackbacks/42545.htmlCalculate A + B.

璁$畻A+B錛岃緭鍏ユ暟鎹湁澶氱粍錛孉C鐨勫叧閿槸浣跨敤C++鐨勮緭鍏ラ敊璇祦銆?/p>

 1#include <iostream>
 2 using namespace std;
 3int main()
 4{
 5    int a, b;
 6    while( cin>>a>>b ) {
 7        cout << a+<< endl;
 8    }

 9    return(0);
10}

11


騫藉菇 2008-02-05 20:37 鍙戣〃璇勮
]]>
久久精品中文字幕久久| 青青久久精品国产免费看| 久久99国产乱子伦精品免费| 国产精品无码久久综合| 久久人人超碰精品CAOPOREN| 精品久久久久久久无码| 日日狠狠久久偷偷色综合免费| 浪潮AV色综合久久天堂| 久久人人爽人人精品视频| 777米奇久久最新地址| 国产精品99久久久精品无码| 91精品婷婷国产综合久久| 久久天堂AV综合合色蜜桃网| 欧美一级久久久久久久大片| 精品久久久久久国产91| 久久久噜噜噜www成人网| 人妻无码αv中文字幕久久琪琪布| 亚洲一本综合久久| 国产精品天天影视久久综合网| 伊人久久久AV老熟妇色| 色综合久久夜色精品国产| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久久精品国产免大香伊| 久久精品人妻一区二区三区| 91亚洲国产成人久久精品网址| 久久99精品久久久久久hb无码| 久久精品国产久精国产一老狼| 一本久道久久综合狠狠躁AV| 亚洲国产综合久久天堂| 无码国内精品久久人妻麻豆按摩| 久久99精品久久久久久9蜜桃 | 久久精品人人槡人妻人人玩AV| 精品国产乱码久久久久久人妻| 97精品国产97久久久久久免费| 国产成人综合久久精品红| 久久精品一区二区三区AV| 久久成人国产精品免费软件| 伊人久久久AV老熟妇色| 99久久无色码中文字幕| 久久中文字幕一区二区| 久久国产热这里只有精品|