| Show all threads Hide all threads Show all messages Hide all messages |
| Could anyone sent his program to me? | Tony | 1141. RSA Attack | 30 Nov 2013 18:54 | 4 |
|
| What is WA 2 ? | ProTreo | 1054. Tower of Hanoi | 29 Nov 2013 23:51 | 1 |
What's the test number 2 ? |
| in n=5 ? | Dusayarov Alisher | 1985. Prime Square | 29 Nov 2013 20:17 | 1 |
in n=5 ? Dusayarov Alisher 29 Nov 2013 20:17 1 20 19 18 17 2 21 22 15 16 3 24 23 14 13 4 25 8 9 12 5 6 7 10 11 |
| Why WA5? | Bakhtiyorbek Begmatov | 1985. Prime Square | 29 Nov 2013 20:05 | 1 |
Why WA5? Bakhtiyorbek Begmatov 29 Nov 2013 20:05 I have WA5. Give me some explanation and tests please |
| Help me! I try to solve and got WA#5 | Ont | 1507. Difficult Decision | 29 Nov 2013 17:32 | 2 |
In any case, you have forgotten to sum up after powering matrices. |
| ADMINS, error in problem statement | ile | 1106. Two Teams | 29 Nov 2013 13:24 | 2 |
I think following phrase should be changed: "Every member of each team must have friends in another team." Because firstly I thought that every member must have more than 1 friend, since it is "friends". so something like "Every member of each team must have at least one friend in another team" should work |
| WA #1 | beginner1010 | 1641. Duties | 29 Nov 2013 06:10 | 3 |
WA #1 beginner1010 8 Jul 2011 13:30 that's so strange I`m getting WA on test 1 my code prints for sample input #1 1 2 3 1 2 1 2 1 3 1 5 2 3 and for second : 1 2 1 2 1 2 1 4 2 3 3 4 please help me ! thank you Accepted after reread the problem statement problem says : "Each student is assigned one classroom he is responsible for" My output was wrong for test #1 Re: WA #1 Spatarel Dan Constantin 29 Nov 2013 06:10 In your output for sample #1 student no. 4 is never on duty! "Each of the students should be on duty at least once during these [m] days." |
| wa test 4 | Shohin | 1786. Sandro's Biography | 28 Nov 2013 23:37 | 1 |
|
| проблема с задачей | SamGTU7Gorkova | 1895. Steaks on Board | 28 Nov 2013 21:01 | 3 |
|
| My AC | Kleninz | 1873. GOV Chronicles | 28 Nov 2013 17:32 | 6 |
My AC Kleninz 25 Oct 2011 09:56 int main() { int n; scanf("%d", &n); d[0] = 5; d[1] = 20; d[2] = 12; d[3] = 2; d[4] = 1; d[5] = 4; d[6] = 6; d[7] = 1; d[8] = 4; d[9] = 4; d[10] = 1; d[11] = 0; printf("%d", d[n]); return 0; } Re: My AC Savchenkov (NNSTU) 26 Oct 2011 21:59 Yeah, I solved it without looking into discussions. int n, p[]={5,20,12,2,1,4,6,1,4,4,1,0}; int main() { cin >> n; cout << p[n]; return 0; } P.S. this problem is EVIL! (o_O) Hey, let others also solve it, don't just post here the solution! Why Sasha is 2, he didnt visit 1 contest Re: My AC Alexey Dergunov [Samara SAU] 15 May 2012 23:18 Thank you for your solution, I didn't want to read these megabytes of letters by myself. + + + - - - - - - - - - + + + - - - - - - - - - + + + - - - - - - - - - + + + - - - - - - - - - + + + - - - - - - - - - // Dissolution of Alarm - + + - - - - - - - - - - + + + - - - - - - - - - + + - + - - - - - - - - + + - - + - - - - - - - + - - - + - - - - - - // Next year - + + - - - + - - - - - - + + - - - + - - - - - - + + - - - + - - - - - - + - - - - + + - - - - // Lesha gone - - - - - + + - - - - - - + - - - + + - - - - - // Nikita & Fedya gone - + - - - - - - + + - - - + - - - - - - + + - - - + - - - - - - + + - - - + - - - - - - + + - - // One more dissolution of team - + - - - - - - - - + + // UNCOUNT - + - + - - - - - - + - |
| there is a polynolyal time solution, my is O(N^3) | Alias aka Alexander Prudaev | 1431. Diplomas | 28 Nov 2013 00:00 | 4 |
sorting array can help improving O(N^3) to O(N^2) |
| To admins: typo in statement | Smilodon_am [Obninsk INPE] | 1032. Find a Multiple | 27 Nov 2013 11:18 | 1 |
There is a typo in statement in the first part of it. The sentence: "This numbers are not necessarily different" should be written as: "These numbers are not necessarily different". |
| If you have WA #36 | Smilodon_am [Obninsk INPE] | 1032. Find a Multiple | 27 Nov 2013 11:08 | 1 |
Try this test (it helped me, but real test #36 has N = 10000): 7 4 4 4 5 5 5 5 Answer, of course, is for example 3 5 4 5 |
| Does this problem need FFT? | Sevenk | 1677. Monkey at the Keyboard | 27 Nov 2013 00:06 | 2 |
After AC, I find that the answer is NO. Edited by author 20.08.2010 09:25 You can speed up your solution by using FFT though. |
| CE what is my code problem ? | Aliaga Shirinov | 1354. Palindrome. Again Palindrome | 26 Nov 2013 13:58 | 1 |
#include <iostream> #include <vector> #include <math.h> #include <cstdio> #include <algorithm> #include <string> using namespace std; int main() { long long m,h = 0,i,t,l,n,f; string a,s; cin >> a; s = a; for(i = a.length()-1 ;i >= 0 ;i--) s[h] = a[i],h++; f = s.length()-2; i = 0; n = f; while(n >= 1 && m != 0) { t = n; m = 0; while(i <= n - (n / 2) - 1) { if(s[i] != s[t]) { m = 1; break; } i++; t--; } n--; i = 0; } if(m == 0) n++; for(i = 0 ;i < a.length() ;i++) cout << a[i]; for(i = n + 1 ;i < s.length() ;i++) cout << s[i]; cout << endl; return 0; } |
| help read data in Java | Anna | 1612. Tram Forum | 24 Nov 2013 23:16 | 1 |
Hello, pleaze help me to read data correctly in Java. I've spend a lot of time with no result. |
| Tests must be improved | raggzy | 1128. Partition into Groups | 24 Nov 2013 22:00 | 1 |
The next 2^N worst-case algo gets AC. searchSolution(i) { if (i==N+1) { throw new FoundException(); } group[i] = 1; if (checkThisAndAdvsHasNotMoreThan1Adv(i)) { searchSolution(i+1); } group[i] = 2; if (checkThisAndAdvsHasNotMoreThan1Adv(i)) { searchSolution(i+1); } group[i] = 0; } ............ try { searchSolution(1); } catch (FoundException e) { outputResult(); } output("NO SOLUTION"); Judges, please do something with it :) This is cool graph problem, i think in order to get AC one should write O(N) solution :) But this obvious brute-force gets AC SAD :( |
| No subject | Ilya Zvigintsev [Tomsk PU] | 1466. Magic Square | 23 Nov 2013 23:52 | 1 |
No subject Ilya Zvigintsev [Tomsk PU] 23 Nov 2013 23:52 Edited by author 01.08.2016 10:52 |
| What's mean this problem? why the example one should output 14 3? | stat958 | 1900. Brainwashing Device | 23 Nov 2013 22:20 | 2 |
What's mean this problem? why the example one should output 14 3? |
| Hashing ... | vlyubin | 1517. Freedom of Choice | 23 Nov 2013 18:00 | 3 |
It seems that lots of people can solve this problem with hashing. Well, I'm using 64 bit hashing and am using sufficiently large prime p (I'm using the usual polynomial hashing i.e. s[0]+s[1]*p+s[2]*p*p ...). I have tried 5 different p's and I'm always catching collisions at test 52 !!! I added code to check for collision and keep working with a different random chosen p ... and now I get TL !!! My question is: what is the smart solution to the problem that I have? What hashing have you used? To admins: How can you guys make solutions with random p get collisions? That's probably a really good test. I know how to build anti-hash for certain p, but I cannot imagine a test that hacks 10 random p's in a row. Good job! Or more like "my solution sucks" :) QProgS 1517. Свобода выбора Visual C++ 2010 Accepted 0.656 9 720 КБ Accepted with double hashing ) Edited by author 23.11.2013 18:01 |