| Show all threads Hide all threads Show all messages Hide all messages |
| 1201 is stupid! | Dmitry 'Diman_YES' Kovalioff | 1201. Which Day Is It? | 19 Apr 2020 02:55 | 3 |
Fucking participants! This problem is the most stupid problem I have ever seen. Why the problem is to output the calendar but not to find the day of week? It is very simple to find but it is IMPOSSIBLE to output! The sample does not give the answers to many questions. Why I MUST GUESS, GUESS and GUESS again? ... Diman_YES[UT], the leader of Universal Team I think, you're wrong. The format of output data is rather clear, and the only thing, not mentioned in the problem statement is that one has to output [.n] when current date is less than 10. IMHO problem 1177 is rather worse from this point of view. I think, you're wrong. The format of output data is rather clear, and the only thing, not mentioned in the problem statement is that one has to output [.n] when current date is less than 10. IMHO problem 1177 is rather worse from this point of view. Jesus Christ !!! I had thought that maybe that was why (putting a space to the left between the brackets when the number had a single digit) that WA had in test2, but I didn't believe it. In fact I assumed that in this problem the spaces were irrelevant. I find it terrible!, "[1]" incorrect and "[ 1] ([.1])" correct, for such nonsense one should not have a WA, much less if the problem does not specify it explicitly. And it is a pity because it is a beautiful problem. Thanks for clarifying this. |
| What's test 21? | Hakkinen | 1085. Meeting | 18 Apr 2020 22:27 | 3 |
I wa many times. Thank you very much! I know,I used "<money[i]" You should use "<=money[i]" oh thanks, man, it helped me) |
| Judge, Please, Help! Why fail in test #2? this is code | Alexander J. Villalba G. | 1200. Horns and Hoofs | 17 Apr 2020 02:34 | 1 |
I don't understand why my code fails. I have been very careful with all cases. The precision of the numbers, the zero and negative benefits, everything. My code should not have so many lines but I have put them for the frustration of having so many WA. Are you sure test # 2 is ok? Check it with my code. Previously I tried it with a much shorter code that reached test # 7 and failed, but it did not take care of rounding problems, this does and fails in test # 2 X-¿ Help, Please! // Brute force #include <stdio.h> #include <math.h> long calcMax (int horn_n , int hoof_n, float horn_b, float hoof_b ) { long max = (long) horn_b * horn_n + (long) hoof_b * hoof_n - (long) 100 * ( horn_n * horn_n + hoof_n * hoof_n); return max; } int passtoInt( char *number) { int num = 0, signo = 1, begin = 0; char decimal_flag = 'N'; int dec_ndig = 0; if( number[0] == '-') { signo = -1; begin = 1; } for(int i=begin; number[i] != 0; i++) { if(number[i] == '.') { decimal_flag = 'Y' ; continue; } if(decimal_flag == 'Y') dec_ndig++; if(dec_ndig > 2) break; num = num * 10 + (number[i] - '0');
} for(int i = dec_ndig; i < 2; i++) num = num*10; return num * signo; } void getPartEntAndDec(long num, long *ent, unsigned *dec ) { *ent = num / 100; *dec = num % 100; } int main(void) { char horn_s[14], hoof_s[14]; int horn_n= 0, hoof_n = 0, horn = 0, hoof = 0;
int horn_b, hoof_b; long max = 0, max1, max_ent; unsigned max_dec; int maxmount; scanf("%s%s%d", horn_s, hoof_s, &maxmount); horn_b = passtoInt( horn_s); hoof_b = passtoInt( hoof_s); for(int horn_n = 0; horn_n <= maxmount; horn_n++) { for(int hoof_n = 0; hoof_n <= maxmount - horn_n; hoof_n++) { max1 = calcMax (horn_n , hoof_n, horn_b, hoof_b ); if(max1 > max) { horn = horn_n; hoof = hoof_n; max = max1; } } } getPartEntAndDec(max, &max_ent, &max_dec ); printf("%ld.%02u\n", max_ent, max_dec); printf("%d %d\n", horn, hoof); return 0; } |
| WA #3 | M@STeR.SoBG | 1090. In the Army Now | 16 Apr 2020 22:35 | 7 |
WA #3 M@STeR.SoBG 9 Jul 2007 16:28 Could anybody suggest the 3-rd test???? i don't know my mistake. :-( 5 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 the right one is 1 perhaps your programme give 0 A very useful test data! Thanks a lot can't be! i'm fighting with 3rd test for more than hour. And when i test your numbers i get 1 as answer, but still not passing test. |
| Runtime Error 14 | Михаил | 1471. Distance in the Tree | 15 Apr 2020 23:51 | 1 |
|
| #WA 18 | 👑OmegaLuL230👑 | 2113. Survive the flood | 15 Apr 2020 18:41 | 3 |
#WA 18 👑OmegaLuL230👑 16 Feb 2020 01:30 This test case helped me: 2 3 0 99999 100000 0 100000 99999 answer: 100000 2 3 1 2 3 3 2 3 1 1 2 2 answer is 2 |
| First Test | vtalgo20_GSavin | 1160. Network | 15 Apr 2020 01:13 | 1 |
The first test is something like this 4 4 1 2 1 2 3 1 3 4 2 4 1 1 I hope this helps you |
| IF WA 5 | Toshpulatov (MSU Tashkent) | 2132. Graph Decomposition. Version 2 | 14 Apr 2020 15:35 | 1 |
IF WA 5 Toshpulatov (MSU Tashkent) 14 Apr 2020 15:35 |
| ХИНТ | Toshpulatov (MSU Tashkent) | 2148. Insane Shot | 14 Apr 2020 14:45 | 2 |
ХИНТ Toshpulatov (MSU Tashkent) 16 Feb 2020 19:42 Подумайте о пересечение прямой из данных двух точек с окружностью а потом о треугольниках Edited by author 16.02.2020 19:45 Re: ХИНТ Kairom `Ekexity 💻 14 Apr 2020 14:45 И ни в коем случае не думайте о зебрах |
| If you are dumb like me and getting WA3 | Md sabbir Rahman | 1673. Admission to Exam | 14 Apr 2020 11:42 | 1 |
phi(n) is not equal to number of coprime less than n, IT IS THE NUMBER OF COPRIMES LESS THAN OR EQUAL TO N. the formula of phi(n) work for all except a special number. |
| WA #5 why?? | Aguero | 1935. Tears of Drowned | 14 Apr 2020 10:54 | 6 |
give me this test please.. 6 1 3 2 5 4 6 Answer: 27 May be this is not 5th test, but if you can solve this, you'll understand what's wrong in your current solving. :-) Can you explain it to me, how you get 27? |
| WA#5 | pavelkaryukov | 1586. Threeprime Numbers | 14 Apr 2020 10:01 | 2 |
WA#5 pavelkaryukov 10 Apr 2020 10:08 Achtung! Time limit exceeded Error :( does anyone knows test 5? thank you! Re: WA#5 pavelkaryukov 14 Apr 2020 10:01 big number(10000 maybe) and time more 1 sec. |
| TEST | Toshpulatov (MSU Tashkent) | 2132. Graph Decomposition. Version 2 | 14 Apr 2020 06:49 | 1 |
TEST Toshpulatov (MSU Tashkent) 14 Apr 2020 06:49 |
| Advice if you're getting WA | Md sabbir Rahman | 2120. Tree Average Weight | 12 Apr 2020 21:24 | 1 |
Putting the intermediary values in long double won't work, At least I couldn't get them to work. Putting them in long long and dividing at the end also won't work. You'll have to do something between these two ( ͡° ͜ʖ ͡°) |
| How to prove the "untill 100 percent" algorithm? | Incognito | 1138. Integer Percentage | 12 Apr 2020 07:02 | 1 |
|
| Те у кого wa2, 6, 22 и тд | Toshpulatov (MSU Tashkent) | 1334. Checkers | 11 Apr 2020 16:04 | 1 |
Не слушайте тех кто пишет что убрал проверку за границы и зашла и все в таком духе. Возможно у вас такая же ошибка как и у меня, а то есть когда ввели новые координаты я проверял только то что может ли эту новую координату кто то ударить, а надо было еще проверить что может ли новая координа ударить кого то из врагов |
| To Admins / My solution need to be rejudged ) | Laise | 1112. Cover | 10 Apr 2020 16:16 | 8 |
I use some shamanism ang get AC. Lets see to the next test: 6 0 20 10 50 30 100 60 120 70 130 110 140 my AC prog outputs: 2 10 50 110 140 but right answer of course is: 3 0 20 30 100 110 140 Your tests must be stronger Your test is added. Problem will be rejudged soon. test 6 0 -20 -10 -50 -30 -100 -60 -120 -70 -130 -110 -140 my AC solution have answer 2 -140 -110 -50 -10 on this test, so you've fucked up twice You have fucked up three times with wrong test my answer is : 10 50 60 120 70 130 this problem is quite easy but output is difficult to suitable to right answer !!!!! perhaps i get WA because of it Edited by author 15.03.2009 12:34 Thanks For the test~ I wa#12 and the test helped me. Edited by author 26.11.2009 08:19 |
| В условии неверно описан формат тестов | yz | 1003. Parity | 10 Apr 2020 14:24 | 2 |
Извините, что по-русски, надеюсь, администраторы знают этот язык. В условии сказано, что длина последовательности задается в первой строке каждого теста. В примерах на форуме длина общая для всех, в каждом тесте задается только количество вопросов. Моя AC-программа действует по форуму: читает длину один раз, а потом только количество вопросов для каждого теста. Хорошо бы привести текст задачи в соответствие с реальностью. Совсем хорошо было бы дать в примере два теста, чтобы сделать структуру входных данных действительно ясной. |
| Stuck on Test 6? Read Here! | Davanish | 1654. Cipher Message | 8 Apr 2020 23:22 | 6 |
For Time limit exceeded: If you get time limit exceeded, it must mean that you're trying to modify the input string (i.e. trying to delete i-th chars). Try creating a new OUTPUT string without modifying the INPUT string. Note: if you're using a high language such as java or C#, try using the StringBuilder object to build your output string. For Wrong Answer(WA): If you get WA, try some of these test cases: Input: "dddd" Output: "" Input: "ddddd" Output: "d" Input: "abba" Output: "" Input: "abbbbac" Output: "c" Input: "wliisddsmmleeddw" Output: "" Input: "avcbbffcv" Output: "a" Hope this helps. Edited by author 12.07.2012 00:47 Input: "abbbbac" Output: "c" Спасибо, помогло! For Time limit exceeded: If you get time limit exceeded, it must mean that you're trying to modify the input string (i.e. trying to delete i-th chars). Try creating a new OUTPUT string without modifying the INPUT string. Note: if you're using a high language such as java or C#, try using the StringBuilder object to build your output string. For Wrong Answer(WA): If you get WA, try some of these test cases: Input: "dddd" Output: "" Input: "ddddd" Output: "d" Input: "abba" Output: "" Input: "abbbbac" Output: "c" Input: "wliisddsmmleeddw" Output: "" Input: "avcbbffcv" Output: "a" Hope this helps. Edited by author 12.07.2012 00:47 Thanks a lot...I could'n understand the problem statement first, now, reading ur comment I clearly understood the problem. for me problem was that program was returning "axx" on "aaaxx" Edited by author 18.03.2017 19:56 |
| Why is it showing wrong answer? I have given a lot of input. In my pc this program is showing correct answer all the time. | mars | 1787. Turn for MEGA | 6 Apr 2020 22:32 | 1 |
#include<iostream> using namespace std; int main(){ int k, n, arr[101],x=0; cin>>k>>n;
for(int i=0; i<n; i++){ cin>> arr[i];
} for(int i=0;i<n;i++){ if(k>=arr[i]){ if(i != n-1){ x = x + arr[i+1]; arr[i+1] = x;
x = 0;
} else{ x = 0; }
} else{ if(i != n-1){ x = (arr[i]-k) + arr[i+1]; arr[i+1] = x;
} else{ x = arr[i] - k; } } // printf("X : %d\n",x); } if(x<=0) cout<<0; else cout<<x;
} |