
ACM
AcceptedQWQ
一直在前进
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ordering Tasks (拓扑排序)
题意:给你一个n表示有n个任务,有m次操作 每次有一个a,b,表示a任务必须放在b任务之前完成; 问你任务该怎么安排? #include #include #include #include using namespace std; int mp[105][105]; int vis[105]; int main() { int n, m; while (cin >>原创 2017-04-22 11:36:42 · 399 阅读 · 0 评论 -
A Simple Problem
For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2. InputThe first line is an integer T, which is the the number of cas转载 2017-04-22 15:32:35 · 473 阅读 · 1 评论 -
POJ-2586
Y2K Accounting Bug Accounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc. All what they remember is that M原创 2017-07-17 17:24:12 · 281 阅读 · 0 评论