锘??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 鍙戣〃璇勮
]]>
狠狠色综合久久久久尤物| 亚洲&#228;v永久无码精品天堂久久 | 久久久WWW成人免费精品| 91精品国产91久久久久久| 99久久久久| 99久久精品免费看国产一区二区三区 | 久久夜色精品国产亚洲av| 久久久这里有精品| 久久久久亚洲AV成人片| 国产激情久久久久影院老熟女| 久久久久久极精品久久久| 人妻精品久久久久中文字幕69| 精品久久人人做人人爽综合| 2021国产精品久久精品| 日韩一区二区久久久久久| 久久久久久精品成人免费图片| …久久精品99久久香蕉国产| 久久久久国产精品嫩草影院| 伊人久久大香线蕉亚洲五月天| 99久久精品无码一区二区毛片| 五月丁香综合激情六月久久| 91久久成人免费| 久久久久AV综合网成人| 亚洲国产精品无码久久青草| 91精品国产色综久久| 午夜人妻久久久久久久久| 欧美一级久久久久久久大| 久久99国产精品一区二区| 亚洲精品乱码久久久久久| 色天使久久综合网天天| 国产A级毛片久久久精品毛片| 精品一区二区久久久久久久网站| 区久久AAA片69亚洲| 久久露脸国产精品| 久久国产美女免费观看精品 | 国産精品久久久久久久| 26uuu久久五月天| 久久精品国产69国产精品亚洲| 91久久精品91久久性色| 91精品国产91久久久久福利| 狼狼综合久久久久综合网|