首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏算法修养

    PAT 甲级 1025 PAT Ranking

    PAT Ranking (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang

    1K100发布于 2018-04-27
  • 来自专栏Don的成长史

    PAT乙级】有几个PAT

    本文链接:https://blog.csdn.net/weixin_42449444/article/details/84865691 题目描述: 字符串APPAPT中包含了两个单词“PAT”,其中第一个 PAT是第2位(P),第4位(A),第6位(T);第二个PAT是第3位(P),第4位(A),第6位(T)。 现给定字符串,问一共可以形成多少个PAT? 输入描述: 输入只有一行,包含一个字符串,长度不超过105,只包含P,A,T三种字母。 输出描述: 在一行中输出给定字符串中包含多少个PAT。 输入样例: APPAPT 输出样例: 2 解题思路: 首先,这个题看完之后有点懵逼,然后仔细分析得出这三点:①每个P对应的PAT组合数量是A之前P的数量;②每个A对应的PAT组合数量是T之前所有甲对应的 PA组合数量的累加;③所有的PAT组合数量是所有T对应的PAT组合数量的累加。

    82410发布于 2019-11-08
  • 来自专栏全栈程序员必看

    pat乙级1002_PAT甲级

    版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

    43860编辑于 2022-11-01
  • 来自专栏Don的成长史

    PAT乙级】解码PAT准考证

    本文链接:https://blog.csdn.net/weixin_42449444/article/details/85017022 题目描述: PAT 准考证号由 4 部分组成: 第 1 位是级别

    1.5K20发布于 2019-11-08
  • 来自专栏乐行僧的博客

    PAT(甲级)1025.PAT Ranking(25)

    PAT 1025.PAT Ranking(25) Programming Ability Test (PAT) is organized by the College of Computer Science

    49120编辑于 2022-02-25
  • 来自专栏用户画像

    PAT 1008

    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 seconds to move down one floor. The elevator will stay for 5 seconds at each stop.

    37910发布于 2018-08-27
  • 来自专栏算法修养

    PAT 1026

    程序运行时间(15) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 要获得一个C语言程序的运行时间,常用的方法是调用头文件time.h,其中提供了clock()函数,可以捕捉从程序开始运行到clock()被调用时所耗费的时间。这个时间单位是clock tick,即“时钟打点”。同时还有一个常数CLK_TCK,给出了机器时钟每秒所走的时钟打点数。于是为了获得一个函数f的运行时间,我们

    855110发布于 2018-04-26
  • 来自专栏用户画像

    PAT 1006

    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 supposed to find the ones who have unlocked and locked the door on that day.

    31720发布于 2018-08-27
  • 来自专栏用户画像

    PAT 1005

    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.

    37420发布于 2018-08-27
  • 来自专栏用户画像

    PAT 1007

    Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 <= i <= j <= K. The Maximum Subsequence is the continuous subsequence which has the largest sum of its elements. For example, given sequence { -2, 11, -4, 13, -5, -2 }, its maximum subsequence is { 11, -4, 13 } with the largest sum being 20.

    36040发布于 2018-08-27
  • 来自专栏用户画像

    PAT 1004

    A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.

    38130发布于 2018-08-27
  • 来自专栏算法修养

    PAT 1040

    字符串APPAPT中包含了两个单词“PAT”,其中第一个PAT是第2位(P),第4位(A),第6位(T);第二个PAT是第3位(P),第4位(A),第6位(T)。 现给定字符串,问一共可以形成多少个PAT? 输入格式: 输入只有一行,包含一个字符串,长度不超过105,只包含P、A、T三种字母。 输出格式: 在一行中输出给定字符串中包含多少个PAT

    85970发布于 2018-04-26
  • 来自专栏vblog

    PAT 1025 PAT Ranking (25分) vector + sort

    题目 Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang

    50120发布于 2020-07-14
  • 来自专栏程序员

    PAT(乙级)1010

    1010. 一元多项式求导 (25) 设计函数求一元多项式的导数。(注:xn(n为整数)的一阶导数为n*xn-1。) 输入格式:以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格式:以与输入相同的格式输出导数多项式非零项的系数和指数。数字间以空格分隔,但结尾不能有多余空格。注意“零多项式”的指数和系数都是0,但是表示为“0 0”。 输入样例: 3 4 -5 2 6 1 -2 0 输出样例:

    88210发布于 2019-05-25
  • 来自专栏开发 & 算法杂谈

    PAT Advanced 1043

    A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:

    39030发布于 2018-08-02
  • 来自专栏乐行僧的博客

    PAT(甲级)1141.PAT Ranking of Institutions (25 分)

    PAT 1141.PAT Ranking of Institutions (25 分) After each PAT, the PAT Center will announce the ranking

    39530编辑于 2022-02-25
  • 来自专栏程序员

    PAT(乙级)1014

    这道题目,略显(真TM坑爹,抱歉,我又说脏话了,但是实在不能忍啊!!!)坑爹。题目的意思看起来说的很清楚,实则完全没有说清楚,题目是“横看成岭侧成峰”啊!,但是标准答案只有一个。哎,等会了写篇文章总结一下刷了10多篇后的体会。这里就不废话了(感觉已经废话已经有点多了,哈哈)。重点来了。

    52140发布于 2019-05-25
  • 来自专栏全栈程序员必看

    PAT乙级1019

    给定任一个各位数字不完全相同的 4 位正整数,如果我们先把 4 个数字按非递增排序,再按非递减排序,然后用第 1 个数字减第 2 个数字,将得到一个新的数字。一直重复这样做,我们很快会停在有“数字黑洞”之称的 6174,这个神奇的数字也叫 Kaprekar 常数。

    32620编辑于 2022-08-23
  • 来自专栏全栈程序员必看

    PAT 乙级 1009

    大家好,又见面了,我是你们的朋友全栈君。 1009 说反话 (20 分) 将一个英语的句子按照单词的顺序颠倒,我的想法又是用链表?。先将每个单词找到,按照头插法存下来,然后再将链表输出。有点呆,

    30720编辑于 2022-08-30
  • 来自专栏开发 & 算法杂谈

    PAT Advanced 1005

    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.

    45920发布于 2018-08-02
领券