随笔分类 - PAT (Advanced Level) Practice
摘要: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 door
阅读全文
摘要: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 Specificat
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 const int maxn = 105; 5 struct Node 6 { 7 int father; 8 int level; 9 bool NoChild; 10 }; 11 12 Node v[maxn]; 13 int level[maxn]; 1...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 5 int n, m, c1, c2; 6 int dis[510], weight[510], e[510][510], num[510], w[510]; 7 bool visit[510]; 8 const int inf = 99999999; 9 10 int mai...
阅读全文
摘要:1 #include 2 #include 3 #include 4 5 using namespace std; 6 const int maxn = 10005; 7 double a[maxn]; 8 int b[maxn]; 9 double c[maxn]; 10 11 int main(){ 12 ios::sync_with_stdio(fals...
阅读全文
摘要:1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int main(){ 8 9 int a, b; 10 scanf("%d %d", &a, &b); 11 int c = a + b; 12 if (c < 0){ 13 printf("-...
阅读全文