自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 PAT A1011 World Cup Betting (20 分)

一、题目With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Similarly, football betting fans were putting their m

2021-02-22 11:14:13 71

原创 2.1 基本数据类型

··· 类型 变量 取值范围 大致范围 scanf printf 整型 int -2^31 ~ +(2^31-1) -2*10^9 ~ 2*10^9 %d %d long (long int) -2^31 ~ +(2^31-1) -2*10^9 ~ 2*10^9 %d %d long long -2^63 ~ +(2^63-1) -9*10^18 ~ 9*10^18 %lld %lld

2021-02-22 11:05:31 63

原创 PAT A1009 Product of Polynomials (25 分)

一、题目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 case occupies 2 lines, and each line contains the information of a polynomial: K N1 aN1 N2 aN2 … NK aNK, where

2021-02-21 16:28:31 95 1

原创 PAT A1002 A+B for Polynomials (25 分)

一、题目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 case occupies 2 lines, and each line contains the information of a polynomial: K N1 aN1 N2 aN2 … NK aNK, where

2021-02-21 15:31:07 80 1

原创 PAT A1065 A+B and C (64bit) (20 分)

一、题目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 input gives the positive number of test cases, T (≤10). Then T test cases follow, each consists of a single

2021-02-20 17:52:30 52

原创 PAT A1046 Shortest Distance (20 分)

一、题目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 pair of exits.Input Specification:Each input file contains one test case. For each case, the first line cont

2021-02-20 16:15:29 67

原创 PAT A1042 Shuffling Machine (20 分)

一、题目Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with gamblers by performing inadequate shuffles, many casinos e

2021-02-20 14:47:57 78

原创 PAT A1152 Google Recruitment (20分)

一、题目In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit prime found in consecutive digits of the natural con

2021-02-10 11:55:54 106

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除