随笔分类 -  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 阅读全文
posted @ 2018-12-12 14:59 ouyang_wsgwz 阅读(180) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2018-12-11 19:57 ouyang_wsgwz 阅读(170) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-05-03 22:03 ouyang_wsgwz 阅读(135) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-03-31 09:46 ouyang_wsgwz 阅读(103) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-03-31 08:40 ouyang_wsgwz 阅读(97) 评论(0) 推荐(0) 编辑
摘要: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("-... 阅读全文
posted @ 2018-03-25 19:12 ouyang_wsgwz 阅读(126) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
深色
回顶
展开