| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| Do all 3 lines intersect at a single point? | Orfest (Novosibirsk SU) | 1938. Карибский треугольник | 12 ноя 2012 02:53 | 2 |
Is it guaranteed, Captain Jack Sparrow, Pintel and Ragetti are located at the same point? The second test tells you 'No'. |
| Can anyone explain the problem? I can't understand it. | BYF | 1178. Дороги Акбардина | 11 ноя 2012 18:29 | 3 |
If the towns ought to be all connected with each other, then why there's just N/2 roads? I think there should at least be N-1 roads. oooooooooooh,I know. I've been a fool for so many times. I can't understand this problem.Plz |
| mystery sign '?' | Bekbolot | 1933. Пушки к бою! | 10 ноя 2012 18:56 | 2 |
Question mark means that you have submitted something, but since standings are "frozen", no one (except you and your monkey, if one exists) knows verdict of this submit (AC, WA or whatever). Edited by author 23.12.2012 15:45 |
| Test #8 | code_freaks | 1931. Отличная команда | 10 ноя 2012 18:01 | 4 |
Test #8 code_freaks 10 ноя 2012 15:15 Edited by author 10.11.2012 15:27 Remember when the pirate is exchanged, this is also counted as a comparison for the new pirate |
| Take the A+B into account? | Ade | 1940. Непростые годы | 10 ноя 2012 16:25 | 1 |
The the example, is (23+7 == 3) taken into account? Thanks // Oh. I saw the "Hint" ... Edited by author 10.11.2012 16:29 Edited by author 10.11.2012 16:29 |
| Just need you AC code,thank you! | pangyuming | 1757. Золотые слитки | 10 ноя 2012 11:53 | 1 |
WA#7,could anybody help me? |
| WA#7,could anybody help me? | pangyuming | 1757. Золотые слитки | 10 ноя 2012 11:53 | 1 |
Just need you AC code,thank you! |
| How is this different from 1012? | Md. Taufique Hussain | 1013. K-ичные числа. Версия 3 | 10 ноя 2012 02:34 | 1 |
I solved 1012 using BigInteger. Same solution got AC for this problem too. I know there is a difference in the limit of input but where is the difference between 1012 and 1013 in solving strategies? |
| WA #4 | Anuar | 1640. Кольцо холода | 9 ноя 2012 22:10 | 5 |
WA #4 Anuar 29 окт 2011 10:34 I've got WA on test 4. People who had WA on this test too, what did you fix? I use 2 ternary searchs. Edited by author 29.10.2011 10:37 Edited by author 29.10.2011 10:37 I had WA #4 too. I suppose in that test case the coordinates which my program has given as answer were coincided with some from the input. I got AC as changing them adding some fraction. Yes, that change doesn't guarantees you a correct answer, but if the fraction has about 9 digits after the decimal point the probability of coincidence is negligible. The fraction I used is 0.0111. Re: WA #4 Andrew Sboev [USU] 27 май 2012 19:58 >I use 2 ternary searchs. Why? Just look for any point, in which isn't placed any monster. If someone have WA#5 check answer precision. |
| why it is wrong (JAVA) | shaihin | 1607. Такси | 9 ноя 2012 18:37 | 1 |
import java.util.*; public class taksi { public static void main(String args[]) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int a1 = in.nextInt(); int b = in.nextInt(); int b1 = in.nextInt(); int g = 0; for(int i = b;i>a;i=i-b1) { a=a+a1; if(i>a) g = a; } System.out.println(" kelisken bagasy :"+g); } } |
| I don't know what is the problem | Diego Alfonso Prieto Torres | 1049. Отважные воздухоплаватели | 9 ноя 2012 06:27 | 1 |
somebody know what is the test 3, I don't know what problem I have in my code; here is it #include <stdlib.h> #include <stdio.h> int main(){ int desicion[10]; int exponentes[1000]={0}; int i,j,valor=1; int numeroDivisores=1; int valorIteracion; int impresion; for(i=0;i<10;i++){ scanf("%i",&desicion[i]); valor*=desicion[i]; } i=2; j=0; while(valor!=1){ if(valor%i==0){ exponentes[j]++; valor=valor/i; }else{ i++; numeroDivisores=numeroDivisores*(exponentes[j]+1); j++; } } numeroDivisores=numeroDivisores*(exponentes[j]+1); numeroDivisores%=10; printf("%i\n",numeroDivisores); } |
| Test 1 - WRONG. Please help | vokson | 1820. Уральские бифштексы | 9 ноя 2012 00:41 | 2 |
There is my code on C. All test I found are passed. For example: hot (3,2) == 3); hot (3,10) == 2); hot (1,5) == 2); hot (5,3) == 4); hot (10,3) == 7); hot (7,3) == 5); hot (9,5) == 4); But server says that anyway test 1 - wrong. What is wrong? Please give me any test, which my program can't decide corectly. int hot (int n1, int k) { int n2, minutes = 0;
//Жарим первую сторону по максимальному числу бифштексов minutes += n1/k; //Пожаренные первые стороны становятся недожаренными вторыми n2 = minutes * k; //Ищем недожаренные первые стороны n1 -= minutes*k; //Докладываем на сковороду n2, если есть if (n2 > 0) { n2 -= (k-n1); if (n2<0) n2=0; } //Жарим остатки n1 и то, что доложили minutes++; //Пожаренное n1 переходит в n2 n2 += n1; n1 = 0; //Жарим вторую сторону minutes += (int) ceil((float)n2/k);
return minutes; } int main() { int n,k;
scanf("%d %d",&n, &k); printf("%d", hot(n,k)); return (EXIT_SUCCESS); } Edited by author 01.10.2012 09:26 Edited by author 09.11.2012 00:48 Edited by author 09.11.2012 00:48 |
| wrong anser | shahriar | 1928. И вновь про экологию | 9 ноя 2012 00:22 | 1 |
my solution get wrong answer ? can anyone give me sample test cases ? or detect my error in my algorithm ? // my code //Bismillahir Rahmanir Rahim Thanks Allah 4 everything #include <stdio.h> #include <stdlib.h> #include <memory.h> #include <map> #include <queue> #include <string.h> #include <iostream> #include <algorithm> using namespace std; int dp(int a ,int opt,int k) ; int max(int m1,int m2) ; using namespace std; int save[10002][102] ; int call[10002][102] ;
int k1; int max_b=0; int n,m,k2; int main() {
while((scanf("%d%d%d",&n,&m,&k2))==3) { memset(save,0,sizeof(save)); memset(call,0,sizeof(call)); k1=0; k1=m; max_b=0; int max_a=dp(n,0,k2); cout << max_a << " " << max_b << endl ; } return 0; } int dp(int a,int opt,int k) {
//cout << a << " " << opt << " " << k << endl ; //getchar() ;
int r1,r2; r1=opt; if(r1==0) r2=1; else r2=0; if(a<=0) return 0; if(a<k && a<k1 ) return k1; if(a<k && a>k1) return a ; if(a==k) return a; if(k==0) return 0; if(call[a][k]==1) return save[a][k];
call[a][k]=1; save[a][k]=max(dp(a,r1,k-1) , k+ dp(a-k - dp(a-k,r2,k2),r1,k2) ) ; if(opt==1) max_b=save[a][k];
return save[a][k]; }
int max(int m1,int m2) { if(m1>=m2) return m1; return m2; }
|
| I want some test | Pegasus | 1727. Магические числа Знайки | 8 ноя 2012 21:28 | 2 |
Test : 100500 Answer : 6286 1 2 .. 6285 6300 |
| If you are C++ programmers, priority_queue<unsigned int> is very easy. | Megatron | 1306. Медиана последовательности | 8 ноя 2012 20:09 | 2 |
Although I don't use C++, but I also can use heap to solve it. |
| Anti-WA22 Test | bsu.mmf.team | 1911. Руины титанов: наперегонки с огнём | 8 ноя 2012 14:54 | 6 |
This problem is not difficult. A lot of people got long sequences of WA#22 (as well as I did) because of one very stupid mistake. I hope this test will help to understand this mistake: 10 10 20 10 100 1 2012 10000 1 30 60 Answer: 15000.0000000 Thanks for the test. I get a different answer (and have WA22) -- 14000. To get your answer from my calculations you're either stopping the cart in the tunnel (which should never be necessary I think) or you're getting a different value for the time when the fire passes the end of the tunnel. I'm not sure where my mistake is. The cart clearly fully enters the tunnel at time 4, and the back of the fire passes the end of the tunnel at time 9 (the fire does not meet the cart before it fully enters the tunnel). 9-4=5. Covering 20 m over 5 seconds with initial velocity 10 requires deceleration of a = 2.4, which is 1.4 more than 1, thus 14000. I'm assuming the front of the cart can't enter the tunnel into the fire... What's wrong with my reasoning? Edited by author 01.11.2012 12:30 With deceleration 2.4 after 5 seconds in the tunnel a velocity of the cart will be equal 10 - 2.4*5 = -2. Oops :) Haha! That's funny. I just used "s = v * t - 1/2 a * t^2" but forgot to check whether it involved "backing up" :). Sorry to Soren and Alba for barbecuing you before backing you up into the safety of the tunnel! I'm sure they'll forgive you. You are not the first who does that ;) It's very funny that this fact didn't allow to solve the problem anybody who tried to do it during the contest. Edited by author 02.11.2012 12:14 At long last, AC. Lots of little details to pay attention to in this one! |
| what WA#22 ? | DENISKA(SSAU) | 1821. Биатлон | 7 ноя 2012 22:18 | 2 |
|
| some hints | zoid | 1826. Минное поле | 7 ноя 2012 19:08 | 2 |
can you explain DP parameters? |
| C++ | Pegasus | 1868. Конкурс прогнозов | 7 ноя 2012 15:05 | 1 |
C++ Pegasus 7 ноя 2012 15:05 just use <map> Edited by author 07.11.2012 15:05 |
| We have a correct answer.But why WA#12. | Muhabbat | 1106. Две команды | 7 ноя 2012 13:36 | 4 |
Input: 7 2 3 0 3 1 0 1 2 4 5 0 3 0 3 0 7 0 6 0 Output: 4 1 4 5 6 Is it true? Please Give me some tests. Edited by author 03.11.2009 15:17 Edited by author 03.11.2009 15:18 I think your answer is true. Try it: In 4 2 0 1 4 0 4 0 2 3 0 Out 2 1 3 or 2 4
Edited by author 06.11.2009 14:49 |