PAT题解
PAT甲级刷题
马尔可芙
一只程序媛
展开
-
字符串—PAT 1035 Password
字符串—PAT 1035 Password 题目代码 题目 To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero)原创 2020-05-23 17:28:10 · 105 阅读 · 0 评论 -
字符串—PAT 1006 Sign In and Sign Out
字符串—PAT 1006 Sign In and Sign Out 题目思路代码 题目 At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you are suppose原创 2020-05-23 17:06:46 · 116 阅读 · 0 评论 -
字符串—PAT 1005 Spell It Right
字符串—PAT 1005 Spell It Right题目代码 题目 Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specification: Each input file contains one test case. Each case occupies one lin原创 2020-05-23 16:56:21 · 86 阅读 · 0 评论 -
字符串—PAT 1001 A+B Format
字符串—PAT 1001 A+B Format 题目思路代码 题目 Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specification: Each input file contains one test ca原创 2020-05-23 16:51:12 · 153 阅读 · 0 评论