原创 JAVA複習 (期末重點考點總結)
第一章 Java語言概述: Java虛擬機的作用:負責執行指令,還要管理數據,內存,存儲器 Java運行機制:將java源程序編譯成字節碼文件,然後由java虛擬機來執行這個字節碼文件 JDK的配置: Path:指定Java的類
原创 計算機組成原理複習 (期末重點考點總結)
第一章 計算機系統概論 從器件角度看,計算機經歷了五代變化。從系統結構看,至今絕大多數計算機仍屬於馮諾依曼計算機。 計算機硬件的五大部分: 馮·諾依曼計算機有什麼特點呢? 最重要的特點是存儲程序,也就是說指令和數據都存儲在存儲器
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1034 團伙頭
One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1093 計數PAT
The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th charac
原创 【一隻蒟蒻的刷題歷程】 【PTA】 A1087 通往羅馬的道路
確實,從我們的城市到羅馬有許多不同的旅遊路線。您應該以最低的成本找到客戶的路線,同時獲得最大的幸福。 輸入規格: 每個輸入文件包含一個測試用例。對於每種情況,第一行均包含2個正整數N(2≤N≤200)(城市數)和K(城市對之間的路
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1070 月餅
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1071 語音模式
People often have a preference among synonyms of the same word. For example, some may prefer “the police”, while ot
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1025 PAT排名
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang Universit
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1024 迴文數
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For examp
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1015 可逆素數
A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For examp
原创 【一隻蒟蒻的刷題歷程】【PAT】 A1020 樹遍歷
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversa
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1069 數字黑洞
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1023 玩數字遊戲
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplicatio
原创 【一隻蒟蒻的刷題歷程】【PAT】 A1013城市之戰
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy,
原创 【一隻蒟蒻的刷題歷程】 【PAT】 A1031 Hello World for U
Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, hello