• <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
            風(fēng)的方向
            厚德致遠(yuǎn),博學(xué)敦行!
            posts - 52,comments - 21,trackbacks - 0
                           有時(shí)候失去的總比得到的多!

            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
                  這個(gè)題目在我剛開始接觸ACM的時(shí)候做出來最有成就的一個(gè)!求各因子之和!
            代碼如下:
            #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) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Questions
            哈哈哈哈哈哈
            久久久久亚洲AV成人片| 性做久久久久久久| 欧美亚洲国产精品久久| 亚洲欧美成人综合久久久| 久久久噜噜噜久久熟女AA片| 久久国产精品-久久精品| 久久亚洲高清综合| 久久国产欧美日韩精品| 久久天天躁狠狠躁夜夜2020老熟妇 | 久久AV高清无码| 日韩电影久久久被窝网| 国产精品美女久久久| 久久夜色精品国产亚洲| 国产午夜福利精品久久| 久久99国产乱子伦精品免费| 亚洲国产日韩综合久久精品| 一本一道久久精品综合| 久久久久久午夜成人影院 | 亚洲精品无码久久久| 国产精品久久久久久福利漫画| 久久乐国产综合亚洲精品| 99久久国产综合精品五月天喷水| 久久午夜无码鲁丝片| 国产69精品久久久久9999APGF| 无码精品久久一区二区三区| 99久久精品国产综合一区| 精品999久久久久久中文字幕 | 国产综合精品久久亚洲| 久久婷婷国产麻豆91天堂| 91精品国产色综合久久| 国产成人精品久久免费动漫| 国产精品99久久精品| 狠狠色婷婷综合天天久久丁香 | 久久国产精品免费一区二区三区| 久久发布国产伦子伦精品| 久久夜色精品国产噜噜麻豆| 久久综合精品国产二区无码| 久久国产亚洲精品无码| 国产高清美女一级a毛片久久w | 亚洲综合精品香蕉久久网97| 99久久精品免费看国产一区二区三区 |