自定义博客皮肤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甲级题库参考答案(c++)

A1001(20 两数相加)#include<iostream>#include<string>using namespace std;int main(){ int a,b; cin>>a>>b; string s=to_string(a+b); int len=s.length(); for(int i=0;i<len;i++){ cout<<s[i]; if(s[i]=='-') continue; if

2021-04-15 13:08:02 2205 1

原创 PAT甲级刷题笔记(c++)汇总

1. c++字符串数组的\0问题#include<stdio.h>int main() { char str1[8] = { 'd','e','d','g','o' }; char str2[5] = { 'd','e','d','g','o' }; printf("%d\n", sizeof(str1)); printf("%d\n", sizeof(str2)); return 0;}[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-p6vLR

2021-04-15 13:05:02 572

原创 PAT甲级题库题型总结

1.模拟题1042(洗牌器)1046(最短路径)1002(多项式相加)1009(多项式相乘)A1017 (25 模拟 ,时间处理、排序、)2.水题、逻辑题100610361093(25 逻辑题)1101(25 逻辑题)1113(25 水题)1116(20 水题)1104(20 片段和 逻辑题)1008(20 水题)1117(25 逻辑题)1120(20 水题)1124 (20 逻辑题)1128(20 n皇后问题)1144(20 找丢失的最小正数) hash、map1

2021-04-15 12:59:38 1130 1

原创 2020年PAT甲级秋季考试真题

1172 2020 秋季Panda and PP Milk(20)PP milk (盆盆奶)is Pandas’ favorite. They would line up to enjoy it as show in the picture. On the other hand, they could drink in peace only if they believe that the amount of PP milk is fairly distributed, that is, fatter

2021-04-15 12:57:28 1004

原创 2020年PAT甲级春季考试真题及答案

1168 Prime DayThe above picture is from Sina Weibo, showing May 23rd, 2019 as a very cool “Prime Day”. That is, not only that the corresponding number of the date 20190523 is a prime, but all its sub-strings ended at the last digit 3 are prime numbers.

2021-04-15 12:55:19 768 1

原创 2019年PAT甲级冬季考试真题及参考答案

1164(20 图形输出 逻辑题 注意用string,getchar吸收换行符)7-1 Good in C (20分)When your interviewer asks you to write “Hello World” using C, can you do as the following figure shows?Input Specification:Each input file contains one test case. For each case, the first part

2021-04-15 12:50:03 450

原创 2019年秋季PAT甲级考试真题及参考答案

1160 (20 Forever dfs+回溯剪枝)题目描述:“Forever number” is a positive integer A with K digits, satisfying the following constrains:the sum of all the digits of A is m;the sum of all the digits of A+1 is n; andthe greatest common divisor of m and n is a prime

2021-04-15 12:47:44 940

原创 2019年PAT甲级春季真题及参考答案

1156(20 Sexy Primes 素数)题目描述:Sexy primes are pairs of primes of the form (p, p+6), so-named since “sex” is the Latin word for “six”. (Quoted from http://mathworld.wolfram.com/SexyPrimes.html)Now given an integer, you are supposed to tell if it is a sexy

2021-04-15 12:43:57 1031

空空如也

空空如也

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

TA关注的人

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