网站首页 站内搜索

搜索结果

查询Tags标签: pat,共有 286条记录
  • 四大具有含金量高的算法证书考试

    一、PAT 计算机程序设计能力测试 官网:PAT 计算机程序设计能力测试 PAT为浙江大学出的一款程序设计的测试网站,分为乙级、甲级、顶级三种,都是通过一道题目,写出此题目描述的程序,主要是考察基本语法和算法与数据结构的能力。 举办时间:每年举办3次,一般为每年3月、…

    2022/9/7 14:23:05 人评论 次浏览
  • C++正则匹配字符串

    以下实例使用C++正则从一串混乱的字符串中匹配带小数点的数字点击查看代码 #include <iostream> #include <regex>using namespace std;int main() {smatch results;string str = "adbhjasdhaj1231.123QWEE QWEQWWQEDXQ 12346.4156";string pat(&qu…

    2022/9/2 1:22:55 人评论 次浏览
  • PAT Advanced 1036 Boys vs Girls(25)

    题目描述: This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a positive in…

    2022/8/21 6:24:04 人评论 次浏览
  • 1103. Integer Factorization (30)-PAT甲级真题(dfs深度优先)

    The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K-P factorization of N for any positive integers N, K and P. Input Specification: Each inp…

    2022/8/9 23:23:02 人评论 次浏览
  • PAT (Advanced Level) Practice 1006 Sign In and Sign Out 分数 25 Python 解法

    题目 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 ins and outs, you are supposed to find the ones who have unlocked…

    2022/8/2 14:23:55 人评论 次浏览
  • PAT (Advanced Level) Practice 1008 Elevator 分数 20 Python 解法

    题目 The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 …

    2022/8/2 1:24:09 人评论 次浏览
  • PAT (Advanced Level) Practice 1009 Product of Polynomials 分数 25

    题目 This time, you are supposed to find AB where A and B are two polynomials.Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial:$ K N_1 a_N_1 N_2 a_N_2 ... N…

    2022/8/1 23:25:53 人评论 次浏览
  • PAT (Advanced Level) Practice 1003 Emergency Python 解法

    题目: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the length of each road between any pair of citie…

    2022/7/31 1:30:19 人评论 次浏览
  • 2022.07.22-初读《大道至简——软件工程实践者的思想》

    本周一(2022.07.18),写了PAT (Basic Level) Practice (中文)1016、1017。本周二(2022.07.19),写了PAT (Basic Level) Practice (中文)1018,阅读《大道至简——软件工程实践者的思想》。本周三(2022.07.20),写了PAT (Basic Level) Practice (中文)1019,阅读《大…

    2022/7/22 23:31:01 人评论 次浏览
  • PAT乙级 1002 写出这个数 C++

    //读入一个正整数 n,计算其各位数字之和,用汉语拼音写出和的每一位数字。 #include <iostream>#include <stdio.h>#include <string.h> int main(void){ char num[102] = { 0 }; char pinyin[3] = { 0 }; int i = 0; int sum = 0; int…

    2022/7/16 1:22:57 人评论 次浏览
  • 1085 PAT单位排行

    注意点 bool cmp_diy(const pair3& a,const pair3& b){//const xxx & x 作用是引用某个变量,只读它的内容,但不能修改这个引用的变量 代码 #include <iostream> #include <cstdio> #include <string> #include <map> #include <…

    2022/7/13 23:23:01 人评论 次浏览
  • PAT_B 1023 组个最小数

    PAT_B 1023 组个最小数 分析 逐个数字统计,首先找到第一个非0数,接着按顺序输出 PAT_B 1023 组个最小数 题目的描述 给定数字 0-9 各若干个。你可以以任意顺序排列这些数字,但必须全部使用。目标是使得最后得到的数尽可能小(注意 0 不能做首位)。例如:给定两个 0,两…

    2022/7/1 6:49:41 人评论 次浏览
  • PAT_B 1047 编程团体赛

    PAT_B 1047 编程团体赛 分析 逐个字符统计分析即可 PAT_B 1047 编程团体赛 题目的描述 编程团体赛的规则为:每个参赛队由若干队员组成;所有队员独立比赛;参赛队的成绩为所有队员的成绩和;成绩最高的队获胜。 现给定所有队员的比赛成绩,请你编写程序找出冠军队。 输入…

    2022/6/28 14:20:27 人评论 次浏览
  • pat甲级——1003我要通过!

    题目 “答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于 PAT 的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。 得到“答案正确”的条件是: 1.字符串中必须仅有 P、 A、 T这三种字符,不可以包含其它…

    2022/6/12 23:51:38 人评论 次浏览
  • 明天pat

    希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟……希望没有大模拟………

    2022/6/4 23:50:21 人评论 次浏览
共286记录«上一页1234...20下一页»
扫一扫关注最新编程教程