| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| some tests | Vladimir Plyashkun [USU] | 1944. Досье орбитальной атаки | 6 ноя 2013 01:43 | 1 |
some tests Vladimir Plyashkun [USU] 6 ноя 2013 01:43 some tests, that could help you 1 0 0 anwear: * 3 0 0 0 5 5 0 answear: *..... |..... |..... |..... |..... *----* 3 0 1 0 5 0 9 answear: * | | | * | | | * + |
| To admins: checker is incorrect | Olympic Bear (Nikolay Dubchuk) | 1987. Вложенные отрезки | 6 ноя 2013 00:22 | 2 |
Hi, your checker doesn't check that exactly M lines are printed. My submission #5318694 has received AC. That's OK. In this problem you may output numbers with any whitespaces between them. If all the numbers are right, your solution will be accepted. |
| WA#2 | DannyPhantom | 1971. Настройки графики | 5 ноя 2013 19:43 | 3 |
WA#2 DannyPhantom 8 сен 2013 02:27 Can someone give me an input example with the right output so I could check it, 'cause all the test I run are right Re: WA#2 Межгалактическая Академия Транспневматологии 8 сен 2013 18:46 |
| wa15 | Experimenter | 1133. Последовательность Фибоначчи | 5 ноя 2013 18:43 | 9 |
wa15 Experimenter 9 сен 2008 21:04 i use binsearch and have wa 15.. i found this test 1 1 5 1 2 what's answer? is this test correct? My AC solution replies 1. I don't know if this test is correct as I solved this problem loooong ago. this test is incorrect because answer for it is -(1/3), it's not integer number 1st elem - 1 2nd elem - -1/3 3rd elem - 2/3 4th elem - 1/3 5th elem - 1 Edited by author 01.11.2008 04:06 i use binsearch and have wa 15.. any hints plz About this test {1 1 5 1 2} case the answer is also 0. The sequence is {1 0 1 0 1} Edited by author 01.04.2011 15:39 It's wrong. If f[2]=0, the sequence is {1 0 1 1 2}. Re: wa15 Alexey Dergunov [Samara SAU] 15 май 2012 23:02 How to avoid WA 15 While calculating f[n] during another iteration of binary search, every time check if f[i] is out of [-2*10^9, 2*10^9]. If it is, immediately break calculation cycle, update binary search interval and start another its iteration. I used formula and a C++ type long long, but still somehow managed to get WA 15. Even though i got around it by calculating in Zp (where p is a prime number bigger than 4 * 10^9), it still blows up my mind how it's possible to overflow long long without violating the statement. Such a tricky test, i'd like to see it. Some tests: test: -36 1680987685 37 1439530908 1 ans: 12 test: 42 1330344015 -38 -1330344015 30 ans: 4131543 test: -459 0 245 0 999 ans: 0 Edited by author 05.11.2013 18:43 Edited by author 05.11.2013 18:47 |
| hint for WA 2 | alp | 1325. Грязь | 4 ноя 2013 22:00 | 1 |
point is equal. e.g. 3 3 1 1 1 1 111 111 111 answer:1 0 |
| why wa text#10? Help,thanks | wjt | 1101. Робот в поле | 4 ноя 2013 21:25 | 4 |
|
| Test #11 Data | 1212187 | 1416. Для служебного пользования… | 4 ноя 2013 16:10 | 3 |
Can someone give me data of test #11? I have test all data in discussion section and got right answer but my program just stuck in test #11.... 4 6 1 2 1 1 3 5 3 4 1 4 2 3 4 1 8 2 3 0 is this test #11? |
| To admins | Silent | 1991. Битва у болота | 4 ноя 2013 14:48 | 5 |
я знаю что она решается, у меня AC. я говорю про то, что на Go 1.1 простой способ считывания входных данных работает некорректно, и прошу разобраться - это бага fmt.Scanf или что-то с форматом test #3. Try to read integers in the first string using format "%v %v\n" instead of "%v %v". It's not evident, but... it works! If solution reads the first string using fmt.Scanf("%v %v\n",&n,&k) then it gets AC. Thanks, Sandro (USU)! |
| Problem 1052 "Rabbit Hunt" has been rejudged (+) | Sandro (USU) | 1052. Охота на зайцев | 4 ноя 2013 03:22 | 9 |
Some new tests were added. 234 authors lost AC. Maybe we'll add more tests soon. Some more tests were added. 200 authors lost AC. Edited by author 14.12.2011 23:32 I think there is a problem here. My pascal solution has failed and WA 14 now, and it was accepted before. And my C++ solution is still AC and I have recently retyped the same Pascal solution that failed, into C++, and both codes are exactly the same, except one is C++ and the other one is Pascal. What could be the problem? As I see from the problem statement, this test is incorrect =) You are right, this test is incorrect. :) And there is no such test in the test set. But FreezingCool's Pascal and C++ solutions give different answers on this test. The answer to this test is 2, which my program correctly gives. I received WA12. Unless the geometric formula has changed in 5 years, then the new tests could be with boundary conditions. Thank you for taking the time to answer. I find out, that test 14 requires high accuracy of comparsion of two double(float) values. I used e=0.000000001 and i got AC. Do calculations in integer numbers - and won't have troubles with precision. |
| Каким должен быть факториал, если данные не валидны? | ranetka_st | 1083. Факториалы!!! | 2 ноя 2013 20:33 | 3 |
Каким должен быть ответ ,если значения n или k не валидны? Например, если не указать k. Или ввести значения, не попадающие в диапазон? RTFM: http://acm.timus.ru/help.aspx?topic=judge "Input data in the test cases always satisfy the constraints described in the problem statement. You don’t need to verify these constraints in your solutions." |
| Can there be a negative number? | keivan | 1029. Министерство | 2 ноя 2013 18:05 | 5 |
I don't know why I get WA on test 4! Can there be a negative number? This is my code: #include<iostream> #include<cmath> using namespace std; long long dyn[110][510] , a[110][510] , big, sum[110][510] , p[110][510][2] , o , m, n; int main(){ cin>>m>>n; for(int i=0;i<m;i++) for(int j=0;j<n;j++) cin>>a[i][j]; for(int i=0;i<m;i++) { sum[i][0]=a[i][0]; dyn[i][0]=100000000000000000; for(int j=1;j<n;j++) { sum[i][j]=sum[i][j-1]+a[i][j]; dyn[i][j]=100000000000000000; } } if((m==1)&&(n==1)) { cout<<1<<endl; return 0; } dyn[m-1][0]=a[m-1][0]; for(int i=1;i<n;i++) { dyn[m-1][i]=a[m-1][i]; } for(int i=m-2;i>=0;i--) { for(int j=n-1;j>=0;j--) { for(int k=0;k<n;k++) { if(j>k) { if(dyn[i+1][k]+sum[i][j]-sum[i][k-1]<dyn[i][j]) { dyn[i][j]=dyn[i+1][k]+sum[i][j]-sum[i][k-1]; p[i][j][0]=j; p[i][j][1]=k; } } else { if(dyn[i+1][k]+sum[i][k]-sum[i][j-1]<dyn[i][j]) { dyn[i][j]=dyn[i+1][k]+sum[i][k]-sum[i][j-1]; p[i][j][0]=j; p[i][j][1]=k; } } } } } big=dyn[0][0]; o=0; for(int i=1;i<n;i++) { if(dyn[0][i]<big) { big=dyn[0][i]; o=i; } } cout<<o+1; for(int i=1;i<m-1;i++) { if(p[i][o][0]<=p[i][o][1]) { for(int j=p[i][o][0];j<=p[i][o][1];j++) cout<<" "<<j+1; } else { for(int j=p[i][o][0];j>=p[i][o][1];j--) cout<<" "<<j+1; } o=p[i][o][1]; } cout<<" "<<o+1<<endl; return 0; } No there can't be. My ac code. [code deleted] Edited by moderator 19.11.2019 23:27 Seems like your AC code fails at test: 5 5 10 1 10 10 10 1 1 10 10 10 1 10 1 1 1 1 1 1 10 1 10 10 10 10 1 I'm sorry. I should be more careful while reading the problem statement. The correct answer here is 2 2 1 1 1 1. Not 2 2 1 1 1 2 3 3 4 5 5 5. |
| TLE14 Пример теста? | Biplan | 1989. Подпалиндромы | 1 ноя 2013 05:47 | 2 |
Хотелось бы пример теста #pragma comment(linker, "/STACK:16777216") #include <iostream> using namespace std; char str[100001]; bool isPalind(int start, int finish) { int fin = finish-1;//(int)finish-48 - 1; bool answer = true; for (int k=start-1; k<fin; k++) { if (str[k] != str[fin]) { return false; } fin--; } return true; } int main() { char c1, c2; int pos=0, m, fin; cin >> str; scanf("%d\n", &m); for (int i=0; i<m; i++) { scanf("%*[^? ]%c%d ", &c1, &pos); if (c1 == ' ') { scanf("%c", &c2); str[pos-1] = c2; } if (c1 == '?') { scanf("%d", &fin); if(isPalind(pos, fin)) { printf("Yes\n"); } else { printf("No\n"); } } } return 0; } Edited by author 01.11.2013 00:11 Асимптотика же O(nm) у вас. Пример теста: ааа..ааа (10^5 штук), и 10^5 запросов: ? 1 100000 |
| Test 14 | Sergey Naumenko (MUCTR) | 1378. Искусственный интеллект | 1 ноя 2013 02:37 | 1 |
Test 14 Sergey Naumenko (MUCTR) 1 ноя 2013 02:37 |
| Is there better solution then O(n^3) for each test? | vgu | 1221. Malevich Strikes Back! | 1 ноя 2013 01:17 | 4 |
How I can do it on 0.001? Edited by author 31.10.2008 02:29 Edited by author 16.06.2009 00:42 |
| How to solve this problem, plz (@_@) | 3xian | 1757. Золотые слитки | 1 ноя 2013 00:56 | 4 |
Binary Search can solve it. :) |
| Dynamic programming? | Alexey Dergunov [Samara SAU] | 1287. Каналы на Марсе | 31 окт 2013 23:19 | 2 |
I don't see any dynamic programming in this problem... |
| nothing | Ouch | 1319. Отель | 31 окт 2013 23:15 | 1 |
Edited by author 02.11.2013 13:47 |
| Unexpecded place to find an error | Vladislav | 1800. Закон бутерброда | 31 окт 2013 16:40 | 1 |
I was trying many times to get past first test and fixed a few mistakes in the algorithm to no avail. And the reason to fail was that the output was in brackets. |
| Ошибка WA #1 | Adam | 1837. Число Исенбаева | 31 окт 2013 16:35 | 1 |
У меня все работает с разными данными. Мне кажется я не правильно поток ввода установил. Здесь нужно использовать cin? |
| What is 0.001 solution? | OZone | 1023. Пуговицы | 31 окт 2013 11:40 | 2 |
How it is posible to get AC in 0.001 s? What time do such ACs take to get L for K= 99999989? Could anyone give a hint to make it faster than O(sqrt(K))? I think one can get AC in 0.001 by giving solutions that have precalculated values for K = 3...10^8. |