2 Adolphrocs

尚未进行身份认证

暂无相关简介

等级
TA的排名 6w+

PAT(Advanced Level) 1015 Reversible Primes (20分)

PAT(Advanced Level) 1015 Reversible Primes (20分)A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a rev...

2020-02-26 14:01:58

PAT (Advanced Level) 1014 Waiting in Line (30分)

PAT (Advanced Level) 1014 Waiting in Line (30分)Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules f...

2020-02-25 18:45:39

PAT (Advanced Level) 1013 Battle Over Cities (25分)

PAT (Advanced Level) 1013 Battle Over Cities (25分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that ...

2020-02-22 14:43:45

PAT (Advanced Level) 1012 The Best Rank (25分)

PAT (Advanced Level) 1012 The Best Rank (25分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathema...

2020-02-22 14:16:30

PAT(Advanced Level) 1011 World Cup Betting (20分)

PAT(Advanced Level) 1011 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 bat...

2020-02-20 18:19:38

PAT (Advanced Level) 1010 Radix (25分)

PAT (Advanced Level) 1010 Radix (25分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary numb...

2020-02-20 12:05:46

PAT(Advanced Level) 1009 Product of Polynomials (25分)

PAT(Advanced Level) 1009 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 ...

2020-02-18 16:57:31

PAT(Advanced Level) 1008 Elevator (20分)

PAT(Advanced Level) 1008 Elevator (20分)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 ...

2020-02-18 15:58:55

PAT(Advanced Level) 1007 Maximum Subsequence Sum (25分)

PAT(Advanced Level) 1007 Maximum Subsequence Sum (25分)Given a sequence of K integers { N1N_1N1​​, N​2N_​2N​​2​, …, NKN_KNK​}. A continuous subsequence is defined to be { NiN_iNi​​​ , Ni+1N_{i+1}Ni+1​...

2020-02-17 21:15:16

PAT(Advanced Level) 1006 Sign In and Sign Out (25分)

PAT(Advanced Level) 1006 Sign In and Sign Out (25分)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 do...

2020-02-15 20:42:20

PAT (Advanced Level) 1005 Spell It Right (20分)

PAT (Advanced Level) 1005 Spell It Right (20分)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 Specification...

2020-02-15 17:32:33

PAT (Advanced Level) 1004 Counting Leaves (30分)

PAT (Advanced Level) 1004 Counting Leaves (30分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input...

2020-02-15 17:18:11

PAT (Advanced Level) Practice 1003 Emergency (25分)

PAT (Advanced Level) Practice 1003 Emergency (25分)#include <bits/stdc++.h>using namespace std;int n, m;vector<pair<int, int>> graph[505];int d[505], vis[505], roadnum[505];lon...

2020-02-15 16:10:44

PAT (Advanced Level) Practice 1002 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 informati...

2020-02-12 21:53:36

PAT (Advanced Level) Practice 1001 A+B Format

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 less than four digits).Input Specification:Each input f...

2020-02-12 21:22:11

CCF-CSP 认证 201909-3 字符画

CCF-CSP 认证 201909-3 字符画这题有毒,没写对,感觉题意理解有点问题,下次再补。

2020-02-12 20:40:16

CCF-CSP认证 201909-2小明种苹果(续)

CCF-CSP认证 201909-2小明种苹果(续)#include <bits/stdc++.h>using namespace std;int n, D, E;bool flag[1005];int a[1005];int pre(int x){ if (x == 0) return n - 1; else return x -1;}int su...

2020-02-11 15:05:00

CCF-CSP 认证 201909-1 小明种苹果

CCF-CSP 认证 201909-1 小明种苹果#include <bits/stdc++.h>using namespace std;int n, m;struct tree{ int num; int id;}a[1005];long long tot;bool cmp(tree a, tree b){ return a.num == b....

2020-02-10 20:52:13

CCF-CSP 201912-4区块链

CCF-CSP 201912-4区块链看了大佬博客(https://blog.csdn.net/richenyunqi/article/details/104155384)以后写的,本来想着看完按自己思路写,但是最后写出来差不多,但是我80分,运行超时。#include <bits/stdc++.h>using namespace std;map<int, unorde...

2020-02-10 16:39:06

CCF-CSP 201912-3化学方程式

CCF-CSP 201912-3化学方程式满分代码:#include <bits/stdc++.h>using namespace std;string str;map<string, int> lc, rc;vector<string> solve(string s){ s = s + "+"; vector<string...

2020-01-20 09:52:48

查看更多

勋章 我的勋章
  • 专栏达人
    专栏达人
    授予成功创建个人博客专栏的用户。专栏中添加五篇以上博文即可点亮!撰写博客专栏浓缩技术精华,专栏达人就是你!
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv4
    勤写标兵Lv4
    授予每个自然周发布9篇以上(包括9篇)原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。