
PAT甲级题目
docker_007
这个作者很懒,什么都没留下…
展开
-
PAT甲级1008题(Elevator)
#include <stdio.h> #include <math.h> int main() { int N,i,j; int sum=0; int a[100]; scanf("%d",&N); sum+=5*N; for(i=0; i<N; i++) { scanf("%d",&am...原创 2018-03-25 15:45:25 · 378 阅读 · 1 评论 -
PAT 1073 Scientific Notation
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]+E[+-][0-9]+ which means that the inte...原创 2019-01-19 12:52:10 · 201 阅读 · 0 评论 -
PAT1032 Sharing
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,...原创 2018-08-30 16:52:02 · 239 阅读 · 0 评论 -
PAT1022 Digital Library
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a...原创 2018-07-27 19:31:41 · 192 阅读 · 0 评论 -
PAT1071 Speech Patterns
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzing such patterns can help to narrow down a speaker...原创 2018-07-26 20:11:36 · 457 阅读 · 0 评论 -
PAT1054 The Dominant Color
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 color with the largest proportional area is called the d...原创 2018-07-25 15:44:59 · 217 阅读 · 0 评论 -
PAT1100 Mars Numbers
People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov, dec" on Mars, ...原创 2018-07-25 12:17:36 · 210 阅读 · 0 评论 -
PAT1063 Set Similarity
题目 Given two sets of integers, the similarity of the sets is defined to be N~c~/N~t~*100%, where N~c~ is the number of distinct common numbers shared by the two sets, and N~t~ is the total number of ...原创 2018-07-24 00:36:46 · 174 阅读 · 0 评论 -
PAT A 1007 Maximum Subsequence Sum Solved By C
#include <stdio.h> #include <stdlib.h> int main() { int N,i,A[10002]; int count=0; scanf("%d",&N); for(i=0; i<N; i++) { scanf("%d",&A[i]); } ...原创 2018-03-28 20:09:18 · 157 阅读 · 0 评论 -
PAT A 1001 A+B Format
#include <stdio.h> #include <math.h> #define N 100 int main() { int a,b,c,k,i=0,j,tag=0; int A[N],B[N]; scanf("%d %d",&a,&b); c=a+b; if(c==0) { prin...原创 2018-03-27 23:08:08 · 159 阅读 · 0 评论 -
PAT 1075 PAT Judge
1075 PAT Judge (25 分) The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT. Input Specificati...原创 2019-01-24 22:21:54 · 346 阅读 · 0 评论