• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            voip
            風的方向
            厚德致遠,博學敦行!
            posts - 52,comments - 21,trackbacks - 0
                           有時候失去的總比得到的多!

            Description

            The Double Seventh Festival, on the 7th day of the 7th lunar month, is a traditional festival full of romance. On that day, the God of the Love came to the digital kingdom, and annunciated to the people:

            Notification


            Do you want to know who is your fere? You can find him or her by this means:
            Please add all the factors of your ID-Card-Number, and you can find this is your fere's
            ID-Card-Number.


            The factors of a numer N is the numbers,they being small than the number N ,and can being divided exactly by the number N.
            For example, the number 12 has the factors, such as 1,2,3,4,6.

             

            Input

            The fist line is the number T (1 <= T <= 500000), indicated the number of the test cases.
            The next T lines, each line has one integer N( 1 <= N <= 500000), meaning the ID-Card-Number.

            Output

            For each test case, you should output the fere's ID-Card-Number on a line.

            Sample Input

            3
            2
            10
            20
            

             

            Sample Output

            1
            8
            22
                  這個題目在我剛開始接觸ACM的時候做出來最有成就的一個!求各因子之和!
            代碼如下:
            #include<cstdio>
            int main()
            {
                
            int i,j,n,m,sum;
                scanf(
            "%d",&n);
                
            for(i=0;i<n;i++)
                
            {
                    sum
            =0;
                    scanf(
            "%d",&m);
                    
            for(j=1;j*j<=m;j++)
                    
            {
                        
            if(m%j==0)
                        
            {
                            sum
            =sum+j+m/j;
                        }

                        
            if(j*j==m)
                            sum
            -=j;
                    }

                    printf(
            "%d\n",sum-m);
                }

                
            return 0;
            }

            posted on 2010-09-06 09:34 jince 閱讀(1058) 評論(0)  編輯 收藏 引用 所屬分類: Questions
            哈哈哈哈哈哈
            久久笫一福利免费导航| 亚洲国产精品高清久久久| 久久精品无码一区二区app| 精品久久久无码中文字幕 | 久久中文字幕人妻丝袜| 日产精品久久久久久久性色| 97久久综合精品久久久综合| 欧美精品丝袜久久久中文字幕 | 国产综合久久久久| 久久九九久精品国产免费直播| 99精品国产综合久久久久五月天| 国产99久久久国产精品~~牛| 久久综合亚洲鲁鲁五月天| 国产高清美女一级a毛片久久w| 日本欧美久久久久免费播放网| 久久亚洲色一区二区三区| 国产精品久久久天天影视| 久久影院综合精品| 久久无码AV一区二区三区| 一级做a爱片久久毛片| 久久久无码人妻精品无码| 波多野结衣久久精品| 色悠久久久久久久综合网| 国产精品无码久久四虎| 欧美精品一区二区精品久久| 国产婷婷成人久久Av免费高清| 亚洲乱码精品久久久久..| 欧美日韩久久中文字幕| 亚洲AV伊人久久青青草原| 伊人色综合久久| 欧美亚洲另类久久综合| 91久久香蕉国产熟女线看| 一本大道加勒比久久综合| 国产精品久久久福利| 91秦先生久久久久久久| 精品久久久久中文字幕一区| 狠狠精品干练久久久无码中文字幕 | 国产成人无码精品久久久性色 | 久久精品免费全国观看国产| 一本大道久久东京热无码AV| 亚洲精品综合久久|