合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        代做320SC、代寫Python/Java設(shè)計編程

        時間:2024-07-26  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



        Computer Science **0SC – (2024)
        Programming Assignment 1
        Due: Friday, July 26 (11:59pm)
        Requirements
        This first assignment lets you get familar with submission of simple (but correct and efficient) algorithms
        to the CompSci **0 automated marker. There are two algorithms/programs required but three different
        submissions for marks (two data sets for one of them). It is worth 5% of your total course marks. (Note
        future programming assignments will require much more work to obtain the same number of marks so
        you are encouraged to make a serious attempt on this one.)
        Problem Statement 1: Computing GCD
        Read in a sequence of **-bit signed integers (several per line separated by spaces) until a single line
        containing zero (0). There will be at most 1000 integers per line. For each line except for the last one,
        compute the greatest common divisor (gcd) of that set of integers. Then output on a line the statement
        “The gcd of the integers is x.” where x is the desired gcd. Note, for this problem, all answers should
        be non-negative.
        The input should be taken from keyboard/stdin/System.in.
        Sample Input:
        2 4 8
        15 0 -5
        6 20 25 5 30
        28 21952 49 294 3822
        0
        The precisely formated output should be sent to console/stdout/System.out.
        Sample Output:
        The gcd of the integers is 2.
        The gcd of the integers is 5.
        The gcd of the integers is 1.
        The gcd of the integers is 7.
        Practice I/O
        For all programs, the input should be taken from stdin and output stdout. A practice problem (no
        marks) for this input will be available on the automarker. Instead of outputting the gcd, simply output
        the number of integers for each test case on a line by itself (nothing else). The number of output lines
        should be the same as the number of test cases being processed.
        1Problem Statement 2: Minimum Double Pair
        The input format for this problem is the same as in Problem 1 but all integers (per line) are assumed to
        be different. We read in a sequence of **-bit signed integers (several per line separated by spaces) until
        a single line containing zero (0). For each line except for the last one, compute the smallest sum s such
        that there are two different pairs of integers (x1, x2) and (y1, y2), where x1 < x2, x1 6= y1 < y2 6= x2,
        that both sum to s (e.g., x1 + x2 = y1 + y2 = s). If such a sum s is possible, output on a line “yes: s”.
        Otherwise output on a line “None”.
        Sample Input:
        2 1 3 4
        10 20 40 45 5 15 25
        24 23 8 29 31 5
        10 20 50 51 52 53 54 12 15 16
        0
        Sample Output:
        yes: 5
        yes: 25
        None
        yes: 62
        Submission
        You need to use just one source file per problem. The file extension indictes which programming
        language you are using.
        You submit to our automated marking system http://www.cs.auckland.ac.nz/automated-marker. Limited
         feedback will be given by the submission system (see Help/FAQ) and you are allowed to resubmit
        up to 8 times per problem before a 20% penalty applies.
        There is two marks awarded for Problem 1 and three marks awarded for Problem 2 (with the harder
        input cases being worth one mark).

        請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp






         

        掃一掃在手機打開當(dāng)前頁
      1. 上一篇:&#160;COMP1711代寫、代做C++,Java程序設(shè)計
      2. 下一篇:CPT206代做、Java設(shè)計編程代寫
      3. 無相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發(fā)動機性能
        挖掘機濾芯提升發(fā)動機性能
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)400(全國服務(wù)熱線)
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話24小時服務(wù)熱線
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
      4. 短信驗證碼 酒店vi設(shè)計

        日韩毛片免费在线观看| 在线精品亚洲一区二区小说| 久久精品国产精品亚洲艾| 久久99精品久久久久久齐齐| 国产乱人伦偷精品视频AAA | 日韩精品极品视频在线观看免费| 久久久久人妻精品一区| 国产精品成人久久久久三级午夜电影| 国产美女在线精品观看| 国产AV国片精品| 亚洲A∨午夜成人片精品网站 | 无码精品不卡一区二区三区| 亚洲Av无码精品色午夜 | 亚洲嫩草影院久久精品| 国产精品第一区第27页| 国产真实乱子伦精品视| 精品国产一区二区三区不卡| 中文字幕乱码中文乱码51精品| 狠狠色婷婷久久综合频道日韩| 在线播放国产精品| 久久精品亚洲综合专区| HEYZO无码综合国产精品227| 国产成人精品999在线| 91国内揄拍国内精品对白不卡| 久久精品这里热有精品| 国产精品久久久99| 国产日韩高清三级精品人成| 精品国产专区91在线尤物| 老司机午夜精品视频资源| 国产极品白嫩精品| 国产精品亚洲mnbav网站| 欧美日韩精品SUV| 精品一区二区AV天堂| 欧洲精品无码成人久久久| 国产高清在线精品一区| 久久精品国产网红主播| 亚洲av无码国产精品夜色午夜| 亚洲av午夜精品一区二区三区| 亚洲日韩中文字幕日韩在线 | 国产精品李雅在线观看| 国产乱码精品一区二区三区|