|
0
Is it same with Java 1.6? I have about the same configuration, but no warning about unused library. |
|
+5
It is still the same even after visiting that link, probably some issues with Chinesse firewall? |
|
+8
You better run Main.java from idea by, for example, right clicking on Main.java and selecting “Run ‘Main.main()’” |
|
+5
Sorry, all I can see is some ieroglyphs, exclamation mark in speech bubble and “hi.baidu.com” |
|
+8
That’s ok — Main.class is class file, not java file, and all class files are generated in out |
|
+8
No need to do this for sure. I defenately do not do this, but I have separate module for Main.java |
|
+18
That is because usually all 11 years are spent in the same school. There is elementary (starter in Russian) school first 4 years and high (middle in Russian) school distinction, but they are considered 2 parts of education that are provided in the same institution, hence all it students are usually referred to as students. By the way, universities in Russia are commonly reffered as “Высшая школа” which literally translate to high school, which leads to a lot of confusion |
|
0
Sorry for late reply, was a bit busy lately Could you please provide screenshot of dependecies tab? |
|
+8
Input/output files should be in project root That is very strang you have problems with Main.java. There should be Main class inside with main method. Could you please make a screenshot? |
|
+3
Pupil |
|
+8
I do not know of any rule that forbids using it You just need first set up read/write from file (i. e. choosing custom in Inpu and Output) and thenm after testing on samples and downloading input, to run created class’ main method wherever it lies (src by default) |
|
+5
Had you added plug-in file to classpath as described in manual? |
|
0
Also — is there any standings available? |
|
+13
I hope in case of several identical submits when last one got Accepted and all previous were judged Internal Error time of first such submit will be taken into account |
|
+9
2. It will be open for all STUDENTS, no professional will be allowed. Quote from CodeChef page for this contest. Somewhat contradicts This contest is open to all. |
|
0
For Java check this There are some tools to parse tests for other languages, cannot easily locate them through |
|
+29
My screencast will be here shortly Not very eventful through as I spent most of my time with pen and paper ;) |
|
+11
I think retyping of solution is not desired either — but it in any case should be mentioned in the rules |
|
+12
Common sence — otherwise it would be copyable |
|
+23
Please notice, that DST is already in force in USA, hence for most of the world SRM would be one hour earlier then it is common for Saturday SRMs |
|
+12
Round was supposed to be rated for everyone, but technical mistake in round setup spoiled this |
|
0
Check emotionalBlind’s comment at the bottom, maybe you have same problem |
|
0
Yes It seems for whatever reason Idea considers readLong method as used. Could you open your created source (i.e. Main.java) in Idea and see if method name is grayed out as unused or not? |
|
0
Strange, not repetable on my computer By the way, you can use Test Type: MULTI_TEST, that’s exactly why that type was created |
|
0
That is bug in TopCoder algorithm, I receive that warning quite regular, but never had my submission judged as UCR violation after I started to use Java. Can you point to your codechef submit where inlining/unused code removal had not worked? |
|
+3
Later, Mike answered same question in Russian |
|
+1
In the created source (the one you will submit to the server) all unused methods will be removed |
|
+1
Well, it should be somewhere under source — just like for any Java project |
|
+2
Are you sure your method was public? |
|
0
Anywhere it will be visible fromyour solution |
|
0
You need to create some class, like IntegerUtils and create static method isPrime. Then you can use it in your solutions |
|
0
Why? Alex don’t has a taxi number, but has “other” number. Both have one pizza number |
|
+5
Could you elaborate? What’s the difference in this context? |
|
+2
We do not need a string, that should satisfy the constraint. We just required that ANY string must satisfy the constraint |
|
+22
Than any string will do as there is no restriction |
|
+19
I think the question is — we have set of points, rotate them by random angle (evenly distributed). Than we count average number of comparisions. Qustion is — what is the biggest value of this average? |
|
+3
Well, he mentioned at least one such algorithm — Divide and conquer. The problem is it is still quite complex to implement |
|
0
I solved it using min cost max flow. At first you make add edge of capacity 1 and weight 0 for each pair of prefernces as well from source to each student. Also we will add edge from each faculty to sink with capacity 1 and weight 1. Then we will find flow of size 1 n times and if all edges from faculty to sink are filled add one more edge with capacity 1 and weight (number of allready added edges from this faculty to sink) + 1 |
|
0
Java compiler considers warnings as errors, can you fix this? |
|
0
I cannot submit as of now, rights? |
|
0
It should generate the Main file when you run or debug created configuration |
|
0
Nothing is working or only contest parsing? |
|
0
For SRM 531 D2 250 empty arrays were handled incorrectly. I will fix this ASAP As SRM 530 currently unavailable I’ll look into that later |
|
+13
Thank you for this Also I hope this year all limits on input data would be available from the start |
|
0
Actually there is standard tl and ml, at least that was the case for some last years |
|
+23
For the God sake, it is 2012. Still no Java? |
|
0
I’ll look into it |
|
0
You just need to write class and put it somewhere under your source (e.g. in src/nova directory) and then fill nova.MyInputClass under inputClass in chelper.properties
|
|
+3
You just need to make sure that your class takes InputStream as argument and has method next, which returns next token from input as string. Everything else you can write as you like
|
|
+3
Yep, would change it in next version
|
|
0
Just noticed - you copied chelper.properties to src directory, but it should be in project root
|
|
0
Had you restarted Idea after copying chelper.properties?
|
|
0
Класс InputReader в том пакете, где вы его создали. Он вместе с плагином не поставляется
Набирать ручками каждый раз ничего не надо, конечно. Просто создайте один раз класс и используйте. Единственное требование - в нем должен быть конструктор от InputStream и метод next |
|
0
Нигде. Нужно только перезагрузить идею (ну и не забыть написать InputReader ;))
|
|
0
Sorry for late reply. 2.33 addresses exactly this issue
|
|
+5
You can send a generator
|
|
+12
It is, but in C++ there are no range check, so trying to hack for being out of bounds for array/vector are very risky (expecially with off be one errors)
|
|
+1
It is not correct as function is not monotonic. baaab has good string of length 5, but not of length 4
|
|
+1
Due to bug in build process incorrect jar file was uploaded. Please redownload
|
|
+10
В связи с изменением формата страниц Codeforces прошу обновить CHelper до последней версии
--- Due to format of Codeforces pages change please update CHelper to the latest version |
|
0
It worked fine for me. Are you sure you are using last version? (it was fixed in version 2.01, I believe)
|
|
+1
You either had not copied it to correct folder or had not restarted Idea since
|
|
0
Unfortunately, no
There is Objective-C IDE form JetBrains which in beta test yet AFAIR |
|
0
Yes it is. I read a lot of novels in English lately and that was one of quite a few discoveries I made (other one, for expample, that breakfast has nothing to do with 'quick' meaning of fast)
|
|
0
Actually, CHelper uses moj as arena plugin. Main feature it provides for TC tasks - code inlining and unused code elemination. Testing functionality is more useful for standard tasks
|
|
+11
|
|
0
No, but I never tried to create menu, just added icons to toolbar
|
|
+10
Codeforces recently started to vary contest times
|
|
0
That java file would be created automatically when you use correct plug-in
|
|
0
Exception is thrown because you tried to run task without associated .java file (I think, you tried to create task manually)
|
|
0
Defenately would not work - try using moj. It also works with FileEdit and CodeProcessor
|
|
0
I'm not sure - if it generates similar code (i.e. my parser able to parse tests from code generated by your plugin) - it should be ok. TopCoder tasks should generate automatically when you open task in arena if it correctly parsed. My own TC plug-in which would just pass needed info to Idea plugin is in plans
|
|
0
Are you sure you use moj as topcoder plug-in?
In order to inline code you need to run your problem using either Run (Shift+F10) or Debug (Shift+F9) |
|
+1
That exception happens when file associated with task (i.e. Task.java) is deleted. I will wrap it with apporopriate actions (dialog that would suggest to delete task) in the next version
What is suspectible in your configuration that is TopCoder directory - are you sure it is relative path from project root and source directory in default package? I would like to make screencast, but currently do not have access for computer, which has small enough monitor but powerful enough processor. |
|
-8
For TopCoder - you need to use moj plugin for arena and configure it to save files to topcoderDirectory from your config. Codechef tasks are generated from the same place as Codeforces, you just need to select Codechef in combobox 2. You need to modify getCertainty method of TaskAChecker
|
|
+3
I'll andwer you after today's COCI contest
|
|
-8
Please update and report any changes (use plus button)
|
|
-8
What plug-in version do you have? If 2.2, do you click onarrow button or plus button
|
|
0
O(n + k)
|
|
+3
This solution do not use any suffix strcture at all
|
|
+1
For test abbbbb....b and k = 100000, it will create strings of total size k2 / 2.
|
|
+12
Please, do not use absolute paths in config. Use paths relative to project root, like src/My for default directory and src for output directory. Also all configured folders (aside from archive, which may be wherever) should be under path of some module of your project
|
|
+1
Very small part of it is task generator for Codeforces, and no, it can't be used in C++
|
|
0
If your question is how do I use it, answer is here |
|
-2
My solution do not use hashes
|
|
0
In "Menus and Toolbars" dialog you need to select some item on main toolbar, click "Add after...", in "Choose Acrions To Add" - "Plug-ins"->"CHelper", and then select ones you need (using control key) and press OK
|
|
0
Are you sure you've restarted Idea after putting file to correct folder?
|
|
0
Folder where you put plugin is incorrect - it should be in your home directory (like c:\Users\codeKNIGHT\.IntelliJIdea10\config\plugins\)
|
|
0
Just like there are national masters there exist national grandmasters - at least in Russia. Unlike national masters, all but one Grandmasters of USSR were also IGM, but not the other way around. I do not have similar statistics for Russia |
|
+11
I think Petr meant contribution as on a more popular IT Russian site habrahabr same thing is called karma
|
|
0
Actually is does. "Строчная" is lower case while "Прописная" is upper case
|
|
-1
Essential change of problem statement and pretests
|
|
+31
Sorry to say, but this is very bad contest - no original ideas involved, just standard problems with some obious addons. B had some potential, but only with corner case (a = 1, b != 1)
|
|
+21
It is. Statement of problem had changed during contest, as well as correct solution (that correctly handles a == 1 || b == 1) not passing pretests until deep into the contest
|
|
+3
It is only for IntelliJ Idea. There is community edition which is free
|
|
0
As said above, my plug-in is supposed to do exactly what you want in your first question
|
|
+8
You need to use files "input.txt"/"output.txt" for input/output
|
|
+1
But we already saw all 3 cards
|
|
+6
8 3
1 2 3 4 5 6 7 8 3 3 4 5 6 7 8 Correct answer is 3.5 7.5, not 1.5 7.5 |
|
+36
Trick is we can already saw all k cards, but there are enough theorems to form one more card of the same size. Say n = 13 and k = 5
|



