随笔分类 -  刷题

上一页 1 ··· 4 5 6 7 8

1006. Sign In and Sign Out (25)
摘要:#include "stdafx.h" #include <iostream> #include <string.h> using namespace std; int main() { int n; scanf("%d", &n); int i, j, hour[2], second[2], mi 阅读全文

posted @ 2025-11-23 16:51 王景迁 阅读(2) 评论(0) 推荐(0)

1005. Spell It Right (20)
摘要:#include "stdafx.h" #include <iostream> #include <string.h> using namespace std; int main() { char a[110]; gets(a); int sum = 0, i, len = strlen(a); f 阅读全文

posted @ 2025-11-23 16:51 王景迁 阅读(4) 评论(0) 推荐(0)

1004. Counting Leaves (30)
摘要:#include "stdafx.h" #include <iostream> #include <queue> using namespace std; vector<int> v[110]; queue<int> q; int vis[110], first = 1; void bfs() { 阅读全文

posted @ 2025-11-23 16:50 王景迁 阅读(3) 评论(0) 推荐(0)

1003. Emergency (25)
摘要:#include "stdafx.h" #include <iostream> #include <vector> using namespace std; struct node { int next, length; }; vector<node> v[510]; int team[510], 阅读全文

posted @ 2025-11-23 16:49 王景迁 阅读(3) 评论(0) 推荐(0)

1002. A+B for Polynomials (25)
摘要:#include "stdafx.h" #include <iostream> #include <map> using namespace std; int main() { int n1; scanf("%d", &n1); map<int, double> id; int i, a; doub 阅读全文

posted @ 2025-11-23 16:49 王景迁 阅读(2) 评论(0) 推荐(0)

1001. A+B Format (20)
摘要:#include "stdafx.h" #include <iostream> #include <algorithm> #include <queue> #include <stdlib.h> #include <string.h> using namespace std; int main() 阅读全文

posted @ 2025-11-23 16:48 王景迁 阅读(4) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8

导航