10 2021 档案
摘要:1. 题目 Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in
阅读全文
摘要:1. 题目 Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d
阅读全文
摘要:1. 题目 Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output Fu first if it is negative. For
阅读全文
摘要:1. 题目 Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The
阅读全文
摘要:1. 题目 On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appe
阅读全文
摘要:1. 题目 People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". A
阅读全文
摘要:1. 题目 The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of
阅读全文
摘要:1. 题目 Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a
阅读全文
摘要:1. 题目 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 Spec
阅读全文
摘要:1. 题目 To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing pass
阅读全文
摘要:1. 题目 Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the
阅读全文
摘要:1. 题目 Given two sets of integers, the similarity of the sets is defined to be Nc/Nt×100%, where Nc is the number of distinct common numbers shared by
阅读全文
摘要:1. 题目 Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to ou
阅读全文
摘要:1. 题目 Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to outpu
阅读全文
摘要:1. 题目 A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published
阅读全文
摘要:1. 题目 John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners
阅读全文
摘要:1. 题目 Given three integers A, B and C in \((−2^{63},2^{63})\), you are supposed to tell whether A+B>C. Input Specification: The first line of the inpu
阅读全文
摘要:1. 题目 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pai
阅读全文
摘要:1. 题目 Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoi
阅读全文
摘要:1. 题目 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 student
阅读全文
摘要:1. 题目 With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams do
阅读全文
摘要:1. 题目 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 th
阅读全文
摘要:1. 题目 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 th
阅读全文
摘要:1. 题目 This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each cas
阅读全文
摘要:1. 题目 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 le
阅读全文
摘要:3997. 整数幂 题目链接: https://www.acwing.com/problem/content/4000/ 1. 题目描述 给定两个整数 k 和 l,请判断是否存在一个整数 n,满足 kn=l。 输入格式 第一行包含整数 T,表示共有 T 组测试数据。 每组数据占两行,第一行包含整数
阅读全文
摘要:3994. 水果派 题目链接: https://www.acwing.com/problem/content/3997/ 1. 题目描述 食堂需要做至少 a 份苹果派和至少 b 份香蕉派。 已知,一个苹果可以做 c 份苹果派,一个香蕉可以做 d 份香蕉派。 食堂共可以采购不超过 k 个水果。 请提供
阅读全文

浙公网安备 33010602011771号