# | User | Rating |
---|---|---|
1 | jiangly | 3640 |
2 | Benq | 3593 |
3 | tourist | 3572 |
4 | orzdevinwang | 3561 |
5 | cnnfls_csy | 3539 |
6 | ecnerwala | 3534 |
7 | Radewoosh | 3532 |
8 | gyh20 | 3447 |
9 | Rebelz | 3409 |
10 | Geothermal | 3408 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
+19
The question probably would be anybody not facing this issue... |
+3
You wrote |
On
Roms →
Codeforces Round #509 (Div. 2, based on Qualification Stage of Southern Subregion of NEERC), 6 years ago
+6
Each input must be in the form of |
+10
|
0
Hi, lewin. Can I ask a question on how to define the potential? It's still not very clear to me. My guess of the procedure is: Let the potential to be f(k), p and q to be the numbers of followers for two selected startups. Then the difference of the potentials after a step is: [p * f(0) + f(q + 1) + q * f(0) + f(p + 1)] / 2 - f(p) - f(q) And we want to the difference to be constant, so we can choose f(k) = 2k - 1. Is this similar to what you think? |
+3
Maybe the better way is to stop searching and write one by yourself... You can use the codeforces API to do so, use contest.list to get the id of div.2 contests, problemset.problems to get the problem details. In case some problems are returned by div.1 ID instead of div. 2 ID in the second API, the data I collected might be helpful to you. |
+3
Yes, actually ISP hijacking is the most powerful reason for some websites to enable https. |
+1
If you want a PDF, I think Javascript is useful and more convenient in this case, try the following code in the console of the developer tool and save the page as PDF: https://gist.github.com/TianyiChen/329edfd7c02327c2a0c9e1307816abb8 |
0
Thanks for pointing that out. I read the documentation which said about the range 0-200. Maybe the documentation is not up to date or such restriction only applies in some cases. |
0
I have no idea on the scoreboard part. |
+15
So far as I know, partial score is possible as long as the checker provides a corresponding response.(and the mushup is in IOI mode) Use |
+3
Looks like these ads are placed by a network provider. Maybe you should contact your ISP to stop the ads. |
0
When I tried to view the onsite results, I got an error says "You do not have view access to non-public contest". Edit: It's available to me now. |
+3
If the issue is related to uninitialized |
+13
In the assembly level, consider st as a pointer, if it's uninitialized, the memset was called to an invalid address. |
+10
It seems g++ didn't initialize the variable
at the bottom, so |
+3
This is an unnamed class, not an anonymous one. See http://stackoverflow.com/a/14248127/4879303 for their differences. Unnamed classes are explicitly permitted in C++: Would you please share the data for test 7 so others can try to reproduce this issue easier? |
0
By big numbers, I meant the numbers that can't be directly handled using native types(such as long long). According to my understand, the wiki is talking about this kind of numbers. Usually they are split into parts and saved in an array. For example if base=100, x=1234. Then the array may be a[0]=34, a[1]=12. Multiplying two big numbers in a naive way looks like:
So the complexity is O(len2), which is . By using FFT, the complexity can be reduced to , result the in the wiki. |
+1
The complexity of multiplying two big numbers in a naive way is square of the length of these numbers. So I think |
+5
Yes. Maybe my previous comment isn't clear. I meant generating different hash for an object in an execution is a bug. Hash collision, although only looks part of a string is weird, isn't a bug. |
0
The issue isn't "different hash-codes for the same objects during one execution" which is a library bug. It's the same hash value for different objects, in other words, hash collision. The string "idcvexvhgtyyvplfr" and "idcvexvhgtyyvplfrl" generates the same hash value for the compiler you selected. |
0
Since the standard doesn't specify the implementation of hash functions, the output is environment-dependent. Actually |
+27
If the checker uses testlib, then the source code used is available at GitHub. |
+5
Not 254==0, 254 is true.
|
0
g++ assumes the value of bool is 0 or 1,if you look at the assemly you will find it is actually testing The above conclusion is based on default config of g++ on several Linux platforms(simplely |
0
What's the compiler you've used? |
0
For C++, it will try to access the corresponding memory which is undefined behavior. Maybe the code will work, maybe it will output something wrong, maybe it will crash. |
0
I resubmitted your solution in C++14 and got AC. It seems there was something wrong when judging your previous submission. |
0
Forgot "If the answer is integer, do not print dot." in Div2.C until several minutes before the end of contest... |
0
I've heard that usually the author's Java solution is used as the criteria when determining the time limit. As a result, a proper Java solution should not fail without using some unfamiliar tricks. |
+28
For Xor Closure, could someone please elaborate this sentence from editorial a bit more? |
0
For Chrome, click the page icon at the left of the address bar and edit the site permission. For other browsers, the process should be close to enabling JavaScript. |
+7
If you want to see all comments, temporarily disabling JavaScript is enough. |
0
Maybe a function which allows users to paint colors on nodes and edges could be useful? |
+5
This extent of difference is possible, at least on my machine (the result of running OP's program): |
+5
Due to dynamic CPU frequency, server load or some other reasons, time required for processing the same data by identical program may varies. As a result, several runs of a program may result different time consumed. Sorry for my bad English, hope this makes more sense. |
+24
I guess it should just be difference between each runs. And codeforces caches your submission so if you submit one multiple times, it will return the same result. |
0
Whether format about whitespaces matter depends on the checker of the problem. It's obvious that for this problem, the author needs to write a checker by himself.(The checker cannot just compare tokens like yes/no, integers or floating point numbers) And it tends to has less tolerance about wrong formatting. |
+37
Since you know each has its own advantages. Why do you want to use only one? My suggestion is to choose one which is more convenient based on the scenario. Usually I prefer zero-based index. Because (at least for me) If you must choose one, maybe you should use one-based index, since sometimes it would be pretty painful without the zero position. BTW: you can use negative array index if it is really necessary (not a good idea for just to get the -1 position), to use that, you can write something like:
|
0
It seems the Compilation Error detail for Visual Basic (Mono 4.2.2.30) is not available. |
0
This issue was asked before and said to be fixed in 3-4 days. http://codeforces.com/blog/entry/45869?#comment-304614 |
+5
Some old compilers do not recognize "%lld". In the past, using "%lld" on CodeForces would cause "Wrong Answer". But the compilers used by CF had been upgraded. And now (at least in the recent half year), I never encounter problems with "%lld". |
+3
Maybe test data from uDebug could be helpful? |
0
Sorry but I still can't see the relationship between them. In my perspective, if the server administrators are evil, it's easy to modify the open source program and record the traffic. If they are not interested in users' data, even keeping the source code secret can't harm the security. Since the users have no way to know what servers are running, the majority of security depends on the server administrators, rather than the server software. |
+5
I don't think open source means security since the servers can access information transmitted via HTTP and they aren't under your control. |
+35
Spending 10+ hours on a problem maybe sounds a bit extravagant. (Assuming the 1-2 days and 7-8 hours is for a problem) For myself, it usually means lacking of a problem solving pattern or I need to learn a related algorithm, not because thinking isn't enough. Do you have a command of the knowledge required by solving the problem? If not, it would be better to refer to some related learning resources and solve some less comprehensive, easier problems first. |
0
|
0
throws java.util.NoSuchElementException, it seems you are not using correct input method. PS: In your submission history, you can click the submission No. and see details about it, in this case, you can know the exception and the line throws it. |
Name |
---|