PAT

  • 攻破演算法題_雜湊_PAT_B1029_到底買不買(20)

     題目: 小紅想買些珠子做一串自己喜歡的珠串。賣珠子的攤主有很多串五顏六色的珠串,但是不肯把任何一串拆散了賣。於是小紅要你幫忙判斷一下,某串珠子裡是否包含了全部自己想要的珠子?如果是,那麼告訴她有多少多...

    2021-04-03 23:51 546
  • 1092 To Buy or Not to Buy (20 分)

     1092 To Buy or Not to Buy Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner...

    2021-03-16 23:56 268
  • PAT 1018. 錘子剪刀布 (20)

     技術標籤:PATPAT 簡單模擬 1018 錘子剪刀布 (20 分) 大家應該都會玩“錘子剪刀布”的遊戲:兩人同時給出手勢,勝負規則如圖所示:現給出兩人的交鋒記錄,請統計雙方的勝、平、負次數,並且給出雙方分別出什麼手...

    2021-02-20 06:03 285
  • 1036 Boys vs Girls (25 分)_27行程式碼AC

     技術標籤:PAT甲級PATPAT甲級 立志用最少的程式碼做最高效的表達 PAT甲級最優題解——>傳送門...

    2021-02-20 03:59 199
  • PAT (Basic Level) Practice (中文) 1027 列印沙漏

     技術標籤:PATc語言 1027 列印沙漏 本題要求你寫個程式把給定的符號列印成沙漏的形狀。例如給定17個“*”,要求按下列格式列印...

    2021-02-20 02:50 683
  • PAT 1035 Password (Python 實現)(中文)

     技術標籤:PATpythonPAT 題目: 為了準備PAT,法官有時必須為使用者生成隨機密碼。問題是,總是有一些令人困惑的密碼,因為很難區分1(1)和l(l小寫),或0(零)和O(O大寫)。一種解決方法是用@替換1(1),...

    2021-02-20 02:39 790
  • 【講解】1030 Travel Plan (30 分)【DFS】_41行程式碼Ac

     技術標籤:PAT甲級# 搜尋# 圖論dfs迪傑斯特拉PATPAT甲級 立志用最少的程式碼做最高效的表達...

    2021-02-19 11:44 768
  • for迴圈的注意事項

     技術標籤:PATc語言 for(語句1;判斷1&&判斷2;語句2) 與 for(語句1;判斷1;語句2) { if(判斷2) {程式碼段} }的區別...

    2021-02-19 09:14 356
  • C++版浙大PAT乙級1002(20分)

     技術標籤:PAT https://pintia.cn/problem-sets/994805260223102976/problems/994805324509200384 輸入一個正整數n,這裡保證n小於。計算其各位數字之和,用漢語拼音寫出和的每一位數字。...

    2021-02-19 04:40 630
  • 【19行程式碼AC,簡潔】1029 Median (25 分)

     技術標籤:PAT甲級佇列PATPAT甲級 立志用最少的程式碼做最高效的表達 PAT甲級最優題解——>傳送門...

    2021-02-19 02:23 243
  • pat 乙級 1036 跟奧巴馬一起程式設計(C++)

     技術標籤:pat 乙級c++PATPAT乙級 題目 美國總統奧巴馬不僅呼籲所有人都學習程式設計,甚至以身作則編寫程式碼,成為美國曆史上首位編寫計算機程式碼的總統。2014 年底,為慶祝“電腦科學教育周”正式啟動,奧巴...

    2021-02-18 16:28 534
  • PAT 1049 Counting Ones (30 分)

     技術標籤:PAT演算法 The task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the decimal form of the integers from 1 to N. For example, given N being...

    2021-02-18 10:15 131
  • PTA 1011 World Cup Betting

     技術標籤:藍橋杯pythonPAT 目錄 問題描述思路分析及程式碼實現 問題描述 With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players...

    2021-02-17 10:04 700
  • PAT A1088 Rational Arithmetic (20 分)

     技術標籤:PATc語言數學 目錄 題目注意點實現 題目注意點 所有負數都要帶上括號輸出假分數要化簡為帶分數形式輸出除數為0時需要輸出Inf乘法時會超過int的上限,要用long long儲存...

    2021-02-17 02:47 449
  • PAT 1066 Root of AVL Tree (25 分)(AVL樹的簡單運用)

     技術標籤:PAT演算法資料結構 一、題目描述 An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time...

    2021-02-16 08:57 342
首页上一页第1页下一页共7页