<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當(dāng)前位置: 首頁 - 科技 - 知識(shí)百科 - 正文

        CodeforcesRound#282(Div.2)-A.DigitalCounter_html/css

        來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 15:59:42
        文檔

        CodeforcesRound#282(Div.2)-A.DigitalCounter_html/css

        CodeforcesRound#282(Div.2)-A.DigitalCounter_html/css_WEB-ITnose:Digital Counter time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Malek lives in an apartment block with 100 floors numbered from 0 to 99. The apartment has an
        推薦度:
        導(dǎo)讀CodeforcesRound#282(Div.2)-A.DigitalCounter_html/css_WEB-ITnose:Digital Counter time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Malek lives in an apartment block with 100 floors numbered from 0 to 99. The apartment has an

        Digital Counter

        time limit per test

        1 second

        memory limit per test

        256 megabytes

        input

        standard input

        output

        standard output

        Malek lives in an apartment block with 100 floors numbered from 0 to 99. The apartment has an elevator with a digital counter showing the floor that the elevator is currently on. The elevator shows each digit of a number with 7 light sticks by turning them on or off. The picture below shows how the elevator shows each digit.

        One day when Malek wanted to go from floor 88 to floor 0 using the elevator he noticed that the counter shows number 89 instead of 88. Then when the elevator started moving the number on the counter changed to 87. After a little thinking Malek came to the conclusion that there is only one explanation for this: One of the sticks of the counter was broken. Later that day Malek was thinking about the broken stick and suddenly he came up with the following problem.

        Suppose the digital counter is showing number n. Malek calls an integer x (0?≤?x?≤?99) good if it's possible that the digital counter was supposed to show x but because of some(possibly none) broken sticks it's showing n instead. Malek wants to know number of good integers for a specific n. So you must write a program that calculates this number. Please note that the counter always shows two digits.

        Input

        The only line of input contains exactly two digits representing number n (0?≤?n?≤?99). Note that n may have a leading zero.

        Output

        In the only line of the output print the number of good integers.

        Sample test(s)

        input

        89

        output

        input

        00

        output

        input

        73

        output

        15

        Note

        In the first sample the counter may be supposed to show 88 or 89.

        In the second sample the good integers are 00, 08, 80 and 88.

        In the third sample the good integers are 03,?08,?09,?33,?38,?39,?73,?78,?79,?83,?88,?89,?93,?98,?99.





        分析:不明覺厲的規(guī)律題,由于智商捉急,解析回頭補(bǔ)上。。





        AC代碼:

        #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;#define INF 0x7fffffffint a[] = {2, 7, 2, 3, 3, 4, 2, 5, 1, 2};int main(){ #ifdef sxk freopen("in.txt","r",stdin); #endif int n; while(scanf("%d",&n)!=EOF) { printf("%d\n", a[n/10] * a[n%10]); } return 0;}



        Python版:

        a = [2, 7, 2, 3, 3, 4, 2, 5, 1, 2]d = raw_input()print a[int(d[0])] * a[int(d[1])]



        Python真的好簡潔,感覺會(huì)的人好厲害哦~~~

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        CodeforcesRound#282(Div.2)-A.DigitalCounter_html/css

        CodeforcesRound#282(Div.2)-A.DigitalCounter_html/css_WEB-ITnose:Digital Counter time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Malek lives in an apartment block with 100 floors numbered from 0 to 99. The apartment has an
        推薦度:
        標(biāo)簽: Codeforces div2 codeforcesround#
        • 熱門焦點(diǎn)

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 国产免费无码一区二区| 国产极品粉嫩泬免费观看| 亚洲一卡2卡三卡4卡无卡下载| 亚洲AV无码一区二区三区在线观看| 美女视频黄a视频全免费网站色窝| 亚洲不卡1卡2卡三卡2021麻豆| 免费**毛片在线播放直播| 鲁大师在线影院免费观看| 国产精品亚洲lv粉色| 亚洲一级二级三级不卡| 国产一级淫片免费播放| 97公开免费视频| 免费夜色污私人影院网站| 亚洲AV无码国产精品色| 国产亚洲美日韩AV中文字幕无码成人| 久久精品免费一区二区| 一级有奶水毛片免费看| 亚洲一区二区三区在线观看网站| 亚洲国产精品VA在线看黑人| 好爽又高潮了毛片免费下载| 在线观看免费无码专区| 男女猛烈xx00免费视频试看| 久久精品国产亚洲精品2020| 亚洲精品乱码久久久久久不卡| 青青青国产在线观看免费| 巨胸喷奶水www永久免费| 亚洲AV无码之国产精品| 亚洲免费观看在线视频| 国产亚洲精品国产| 亚洲另类激情专区小说图片| 成年丰满熟妇午夜免费视频| 99精品视频在线观看免费专区| 一级特黄a大片免费| 亚洲中文字幕AV每天更新| 亚洲AV日韩AV鸥美在线观看| 亚洲国产香蕉人人爽成AV片久久| 永久免费看mv网站入口| 台湾一级毛片永久免费| 人妻无码久久一区二区三区免费| 中国黄色免费网站| 国产VA免费精品高清在线|