我为什么可以这 么 笨 !! 明明一开始就想到了最简单的办法 还觉得自己想错了自找麻烦 啊啊啊远远的不达标 ↓自己想复杂导致最后两个点超时的代码 #include <cstdio> ......
我为什么可以这 么 笨 !! 明明一开始就想到了最简单的办法 还觉得自己想错了自找麻烦 啊啊啊远远的不达标 ↓自己想复杂导致最后两个点超时的代码 #include <cstdio> ......
标签: PAT
题目 题解 #include<iostream> #include<cstring> using namespace std; int book[10]; int main(){ char num[22]; scanf("%s&......
题目:1024 Palindromic Number (25分) 分析:大整数相加,数组要开大一点,不能只开20位或者更小,开小了会导致测试点6、8错误 #include <iostream> #include<cstring> #include<...
pat甲级1171
PAT甲级题解目录(题型分类)
PAT甲级1061 Dating测试点坑
那个minn值必须很大才可以通过。我写成10000都不能通过。这是经常忽略的错误。 题解: 参考1094。
This time, you are supposed to find A+B where A and B are two polynomials. 这一次,您应该找到A + B,其中A和B是两个多项式。 (也就是说,把次数一样的系数加起来) Input 每个输入文件包含一个测试用例。...
pat甲级 1053 Path of Equal Weight
When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in serious trouble. For example, oxidizing agent ...
PAT 甲级题目 逐步更新中~
十五天前决定跨考计算机,本科中流985,专业四大劝退之环,然后看了五天C,看到循环的样子,然后十天前看到PAT甲级考试,我在想既然十二月要去考,何不这十天冲一把去考一次,然后十天学完C剩余部分还有C++关于字符...
PAT 甲级 1007 Maximum Subsequence Sum Given a sequence of K integers { N1, N2, …, N**K }. A continuous subsequence is defined to be { N**i, N**i+1, …, N**j } where 1≤i≤j≤K. The Maximum ...
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt();...
(20 分)PAT甲级 1093 Count PAT's (25 分) / PAT乙级 1040 有几个PAT (25分)PAT甲级 1104 Sum of Number Segments (20 分) / PAT乙级 1049 数列的片段和 (20分)PAT甲级 1049 Counting Ones (30 分) 数位dp逻辑题PAT...
PAT甲级-1017 Queueing at Bank
分析:注意同一辆车每一个in与out匹配才是有效数据,于是第一次按车牌排序,确定有效记录,第二次按时间排序,然后对应询问的时间进行模拟进出,最后需要注意的一点就是最长停留的车辆还要处理到23:59:59时才能...
1107Social Clusters(30分) When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. Asocial clusteris a set of...
1075. PAT Judge (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The ranklist of PAT is ...
总分94,其实是运气比较好。还好这次第一题不是很坑,之前9月份和12月份第一题暴力求解其实都不是很会。 记录一下自己的心路历程。 13:32:30 第一次提交第一题 15分 好像是有两个测试点错误,然后没管直接做下一...
PAT甲级 1025 PAT Ranking
1033. To Fill or Not to Fill (25) 时间限制 10 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard ...With highways available, drivi
solution #include <iostream> #include <cmath> #include <cstring> using namespace std; bool is_prime(int x) { if (x <= 1) return false; for (int i = 2;... return
代码如下: #include &lt;iostream&gt; #include &lt;stack&gt; #include &lt;vector&gt; using namespace std; int M, N, K; stack&lt;int&gt; s;... // c...