PAT
MAR_Alviss
脚着AJ屐,身着品如衣
展开
-
PAT 甲级 1013. Battle Over Cities
1013. Battle Over Cities (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the原创 2017-06-29 22:03:49 · 323 阅读 · 0 评论 -
pat 甲级 1003 Emergency
1003. Emergency (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, yo原创 2017-05-30 21:49:11 · 310 阅读 · 0 评论 -
PAT 甲级 1007. Maximum Subsequence Sum
1003. Emergency (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, yo原创 2017-06-27 21:46:38 · 254 阅读 · 0 评论 -
PAT 甲级 1010. Radix
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 number.Now for any pair of positive原创 2017-06-27 21:53:45 · 288 阅读 · 0 评论 -
1018. Public Bike Management (30)
题目说明:有公共自行车网,从原点0出发到目标点sp,要把所有点的自行车数都置为half-full,找到最优路径,优先级依次为:路径长度最短,send最少,back最少。思路:最短路加dfs求最优解我先附上过了的代码,这是我在错误的思路上做了好久没全对最后妥协查了题解的代码#includeusing namespace std;const int M = 501;const int原创 2017-07-29 20:46:55 · 337 阅读 · 0 评论 -
1060. Are They Equal (25)
点击打开题目链接这道题我认为很考验耐性,不审题想满分很难说,直接讲坑点。1、0 是 0.000*10^0,0.000也是02、00123.456这种有前导零的。3、整数4、k可以是负数附上烂代码#include<cstdio>#include<cstring>#include<algorithm>#include<vector>#includ...原创 2018-03-02 19:55:11 · 282 阅读 · 0 评论