-
-
8是不是先省赛再区域赛,百度搜索也找不到报名的地方,每年举办学校不一样吗,有没有固定报名省赛的地方,听说今年省赛已经报名结束了
-
2
-
17听说学区间树(线段树)之前要学红黑树,但是学长讲不要学,,,到底学还是不学啊。。
-
2我现在想自学一些算法解决数学建模中本来要用优化软件解决的问题,比如线性规划我想根据实际情况转化成其他的。我现在在看算法艺术与信息学竞赛这本书
-
72
-
17青岛好呀,青岛妙
-
3主要想问问这些代码哪里效率比较低 虽然洛谷说他不给python 额外时间,但是好像我刷了十几道题好像都还够,这个排序题第一次TLE。。。 a = [int(i) for i in input().split()] m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] l = [[i + 1, m[i] - i / 100000, n[i]] for i in range(2 * a[0])] l.sort(key= lambda k:k[1], reverse=True) for i in range(a[1]): for j in range(a[0]): if l[2 * j][2] > l[2 * j + 1][2]: l[2 * j][1] += 1 else: l[2 * j + 1][1] += 1 l.sort(key= lambda k:k[1], reverse=True) print(l[a[2] - 1][0])
-
13目前div2基本能稳AB题,但很慢,C最后只有差不多半小时了,有无大佬指导一下训练方法
-
6OIer求问,目前水平是拿了个csp省一和noip省二(我们这届名额太少了……),虽然对升学没啥用但还是学了不少东西的。基础数据结构和算法肯定都会了,数论大概学到多项式,图论会一点网络流,数据结构会一点基础的平衡树。 到大学acm里算什么水平呢?可以在大一和学长们一起去比赛吗?acm组队一般是怎样的呢?
-
6
-
1工厂接收 n 个加工任务的需求订单,需要在一天内完成 ,每个任务完成需要20分钟,加工时间必须连续,并且每个任务预约处理完成时间 Ti 不同 (例15:00),每台机器同一时间只能处理1个任务,需要采购 x 台机器完成全部任务,机器的采购成本为100元,任务每延迟1分钟完成成本增加1元,试求解依据需求单需要采购多少机器使得总成本最低。
-
27求大神告知ACM有哪些好的刷题网站,对新手来说。
-
38我大一,想进acm实验室,目标是大二初选的时候能被选上呀,高中没有竞赛经历,现在想找个伙伴一起刷题提升呀,有没有哪个小可爱愿意和我一起互相打卡呀,还可以一起讨论,交个朋友互相鼓励嘛!
-
0我们『三五堂』是清华大学计算系北美校友会的全资股份有限公司 在线教育平台网址:35tang.com 我们主要向中学生、小学高年级学生教授C++语言 帮助他们在CSP全国青少年信息学奥赛等竞赛中获奖 - 现非常需要2名辅导老师加盟我们 职责主要是ZOOM课上对学员进行作业指导及答疑 每周工作4小时左右(都在晚间课后时间) 每小时薪资100-200元,由清华学长提供免费C++语言竞赛培训 希望你是计算机系同学,高中时打过CSP竞赛,或大学时打过ACM的最佳 - 热忱期
-
2大一新生,希望能找一同acm的互相讨论,暑假学了一点,稍微有一点基础
-
5cf上1600要掌握那些算法啊?
-
9
-
3具体介绍一下需要看的书籍 现在只学过C
-
6作为大一新生,怎样快速学习编程,有哪些重点,注意事项,请大佬指教!
-
3
-
0
-
2Ubuntu Paste改成字母和数字混搭的了,感觉很不方便,就自己写了一个。 pasteme(和谐.)cn,自认为做的比Ubuntu Paste好一些,可以加密内容也可以阅后即焚,欢迎大家来贴代码呀。
-
10
-
3cmd里面按Ctrl+v会直接输出^V是咋回事,包括Python的IDE和dev的EXE文件都没法正常使用Ctrl+V功能,都会输出^V,有人知道怎么解决吗
-
2网页链接 麻烦指点一下 #include<iostream> #include<algorithm> using namespace std; long long c[100000], d[10000000]; int main() { long long y, sum = 0, sn = 0; long long x, w, t; cin >> x >> y; for (w = 0; w < x; w++) { long long a, b; cin >> a >> b; sum += b; sn += a; c[w] = a - b; } if (sum > y) cout << "-1" << endl; else { if (sn <= y) cout << "0" << endl; else { sort(c, c + x); if (x == 1) cout << "1" << endl; for (t = x; t > 0; t--) { d[t] = c[t] + d[t + 1]; if ((sn -
-
1poj3578 Card Game Description Jack and Joe are playing a special card game in which each card has some points in three propertiesapo,bquandcri. Jack has one card while Joe has the otherN- 1 cards. Every round Joe picks one of his cards and compares it with Jack's card. The one has the more powerful card wins the round. The rule is as follows: ·The card has more points inapois more powerful. ·If two cards have the same points inapo,the one has more points inbquis more powerful. ·If two cards have the same points inapoandbqu, one has more points incriis more powerful. ·If two cards have the
-
3Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 14. Input The first line of the input contains an integer T(1<=T<=20) which means the number of test cases. Then T lines follow, each line starts with a number N(1<=N<=100000), then N integers followed(all the integers are between -1000 and 1000). Output For each test case, you should output two lines. The first line is "Case #:", # means the number of the test case. The
-
6
-
15我想参加acm,希望找一个可以每天相互学习的acm伙伴 大二菜鸟
-
13如何看待天梯赛(CCCC),可打性大吗?
-
1初始大小为 12*12大小的方形地图上,小人从 水库(x0,y0)出发(水量无限)。 需要给 (x1,y1)...(x5,y5)这5个点运水,每个点需要水量为p1..p5 px∈[50,200],小人最多可携带p0 (p0=100)。 小人每走10到20步,地图上会随机生成(均匀分布)一个取水点(x,y),含水量p(xy) p(xy)∈[1,100]。 问怎么设计路线,使得小人移动距离最短。
-
35
-
2大于0 的正整数n都有因子,如1的因子为1,2的因子为1和2。所以1的所有因子之和为1,2的所有因子之和为3。编程计算正整数n(1<=n<=10000)的所有
-
0
-
3有 n 本书,借第 i 本书的时候要付 a_i 元押金和 b_i 元租金,还书的时候会退押金,但不退租金。现有 s 元,每本书都只借一次,问最多能借到几本书。(0 < n <= 1000000,0 < a_i, b_i <= 1000000,0 < s <= 200000000)
-
3看不懂这题,不知道它表达啥意思⊙_⊙? 有大佬帮帮我吗? Description Bessie and her friends are playing a unique version of poker involving a deck with N (1 ≤ N ≤ 100,000) different ranks, conveniently numbered 1..N (a normal deck has N = 13). In this game, there is only one type of hand the cows can play: one may choose a card labeled i and a card labeled j and play one card of every value from i to j. This type of hand is called a "straight". Bessie's hand currently holds ai cards of rank i (0 ≤ ai ≤ 100000). Help her find the minimum number of hands
-
15大一新生 想从0开始学习并参加 应该如何入手
-
3区域赛提交次数有限制吗?比如用随机算法,多次提交?
-
2求组队,本人大三,有两年oi经验,希望有比赛渠道的可以带我一块,绝不拖后腿。
-
1就是我准大一,在家拿着刘汝佳的书在学。但是我看到第三章之后的习题难度,并且自己写了好几题。 我就想问问,这些习题都是要自己独立啃完吗?
-
13
-
0请问icpc报名的时间大概是几月,有没有具体时间
-
3题目:http://acm.hdu.edu.cn/showproblem.php?pid=1005 Problem DescriptionA number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, you are to calculate the value of f(n). InputThe input consists of multiple test cases. Each test case contains 3 integers A, B and n on a single line (1 <= A, B <= 1000, 1 <= n <= 100,000,000). Three zeros signal the end of input and this test case is not to be processed. OutputFor each test case, print the value of f(n) on a single line. Sample Input1 1 31 2 100 0 0 我的代码: ``
-
0
-
1