PAT
lm32588
这个作者很懒,什么都没留下…
展开
-
PAT 甲级 1001
1001 A+B Format(20 分) 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 Speci...原创 2018-09-01 21:21:18 · 188 阅读 · 0 评论 -
PAT 甲级 1002
用数组存放,参考别人的做的。#include<iostream>#include<stdio.h>#include<string.h>using namespace std;int main(){ int i,k; float a[1001],temp; for(i=0;i<1001;i++) { ...原创 2018-09-01 21:25:00 · 79 阅读 · 0 评论 -
PAT 甲级 1003
算法之最优路径变形#include<iostream>#include<stdio.h>#define MAX 1000000using namespace std;int main(){ int N,M,c1,c2,i,j,k,d; int data[500][500],savemen[500],num[500],team[500]; ...原创 2018-09-01 21:27:54 · 278 阅读 · 0 评论 -
PAT 甲级 1010
注意点:进制的上界不是36,而是已知进制数的数值+1. 直接遍历会超时。找上下界 注意溢出#include<iostream>#include<stdio.h>#include<string.h>#include<algorithm>using namespace std;ty...原创 2018-09-02 16:53:11 · 245 阅读 · 0 评论 -
PAT 甲级 1011
无坑,无难点#include<iostream>#include<stdio.h>#include<math.h>using namespace std;void print(int a){ switch(a) { case 0: cout<<"W "; break; case...原创 2018-09-02 17:13:45 · 119 阅读 · 0 评论 -
PAT 甲级 1004
记录下代码#include&amp;lt;iostream&amp;gt;#include&amp;lt;stdio.h&amp;gt;#include&amp;lt;queue&amp;gt;using namespace std;int Tree[101][101]={0},depth,nochild[101]={0};void BFS(int root){ queue&原创 2018-11-06 20:56:21 · 118 阅读 · 0 评论