| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
| WA test case 20 | HKMT | 1681. Сад-огород | 24 янв 2011 10:45 | 1 |
Does any one know that case? Edited by author 24.01.2011 10:45 |
| remember to add 0 and 10^9 to your structure. | stupidjohn | 1019. Перекрашивание прямой | 24 янв 2011 09:26 | 1 |
|
| 2admins: just wondering... | Artem Khizha [DNU] | | 24 янв 2011 00:41 | 1 |
Greetings! I've been reading FAQ about C# and noticed, that memory boundaries aren't specified via command-line arguments (as they are in Java). Isn't it a secret, how Timus team manage to set memory limits for c# then? // The thing is that I will be first-time helping with organization of some contests in our region, so my interest has a practical nature. :-) |
| I dont understand the problem | Marcelo | 1001. Обратный корень | 22 янв 2011 21:43 | 4 |
I do not understand when you have finished receiving data, and that if no effect then enter receive data never end, so never would show the results and would be an endless repetitive cycle. now with that key, or as I have to request new data, since no effect enter then I have no idea how to stop the cycle does not specify how to stop it. greetings. have you tested your program on your machine? How can we use eof without opening file?? WTH with it? I can't understand anything! FPC 2.0 doesn't compiling it. And Embarcadero RAD Studio XE too! So, What The Hell with it? |
| Help ! WA#2 | Nguyen Khac Tung | 1022. Генеалогическое дерево | 22 янв 2011 16:25 | 2 |
Here's my solution : - Input & reverse all the edges - DFS from all vertexs - If depth = N then output in reverse order What's wrong w/ this one ???? the graph may be not connected. |
| WA#2 | HaaS | 1022. Генеалогическое дерево | 22 янв 2011 16:24 | 3 |
WA#2 HaaS 5 окт 2010 20:26 I was WA#2 and now I get Ac, because: Graph can be not connected Re: WA#2 Nguyen Khac Tung 24 окт 2010 13:05 I got WA#2 too, but I thought that the graph is supposed to be not connected. Can help me identify my errors , here's my solution : - I reverse all the edges - DFS from the vertex without any other vertex pointing to - Count the depth, if depth = number of vertex -> output in reverse order 3Q,i made the same mistake,and i now get AC |
| log2 problem | Gio Pataraia | 1079. Максимум | 21 янв 2011 22:33 | 3 |
i have written algorithm that uses log2() which is in c++(<cmath> library) and when i used it copmpilation error occured "error C3861: 'log2': identifier not found" when i compile it in devc++ it works perfectly.. can everyone helm me? :( Timus use the compiler visual c++ compiler not gcc. hint: log2(n) = log(n)/log(2) (but this sum at the complexity) Edited by author 21.01.2011 22:32 Edited by author 21.01.2011 22:32 Timus use the compiler visual c++ compiler not gcc. hint: log2(n) = log(n)/log(2), (but this sum at the complexity) |
| 2 Admins : Cheater or joke detected ?! | Oleg Strekalovsky [Vologda SPU] | | 21 янв 2011 20:17 | 4 |
По башке себе постучи, дятел :) По башке себе постучи, дятел :) Ни к тебе вопрос был. Нечего по делу сказать - "иди лесом". Edited by author 19.01.2011 20:26 Edited by author 19.01.2011 20:27And what are the cheat you detected? Edited by author 21.01.2011 20:18 |
| 递推能过.. | grayluck | 1073. Квадратная страна | 21 янв 2011 13:16 | 2 |
递推能过.. grayluck 22 сен 2009 06:19 for i := 2 to n do begin min:=maxlongint; for j := 1 to trunc(sqrt(i)) do if min>f[i-j*j] then min:=f[i-j*j]; f[i]:=min+1; end; |
| I wrong the test3 | ydc | 1021. Таинство суммы | 21 янв 2011 12:31 | 1 |
rt who can help me? I need help! |
| test 3 | Igor | 1021. Таинство суммы | 21 янв 2011 12:27 | 2 |
What is the test number 3? I wa the test3,too. Who can help us? |
| IF you get WA 10 !!! | Akcium | 1154. Сражение магов | 20 янв 2011 19:51 | 3 |
with code like this if(lmastery-dmastery>maxdif) maxdif = lmastery - dmastery; i got WA 10 but with if(lmastery-dmastery>maxdif+1e-9) maxdif = lmastery - dmastery; i got AC I havn't rools for choosing right value eps=1e-9. Insread I use more 10 times already my unit for long arithmetics and have Ac. In this problem I used fraction of tipe LongA/longA. Of couse authors used flouts but my exact arithm and author's rounding floats correspond and it is very very surprisingly. Except for roudindg problem is very simple and dosn't demand any optimization for time and memory. |
| Why WA test #2 | Pawel | 1190. Плитка шоколада | 20 янв 2011 16:40 | 1 |
Why I have worng anserw in test #2?? My code: #include <cstdio> #include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; string nazwa[5000]; int wartosc[1000], wartosc2[1000], x, koniec = n-1, pocz = 0, min = 1, max = 10000, summin = 0, summax = 0; for (int i=0; i<n; i++) { cin >> nazwa[i]; cin >> x; if (x == 1) cin >> wartosc[i]; if (x == 0) wartosc[i] = 0; wartosc2[i] = wartosc[i]; }
for (int i = koniec; i>=0; i--) { if (wartosc[i] == 0) wartosc[i] = min; else min = wartosc[i]; summin += wartosc[i]; }
for (int i = pocz; i < n; i++) { if (wartosc2[i] == 0) wartosc2[i] = max; else max = wartosc2[i]; summax += wartosc2[i]; }
if ( summin < 10000 && 10000 < summax) cout << "YES"; else cout << "NO"; getchar(); getchar(); return 0; system("PAUSE"); } Edited by author 24.01.2011 01:13 |
| it's easy if you know... | MSDN | 1538. Сторожевые башни | 19 янв 2011 04:21 | 4 |
There is theory of Ramsei. if you want 4 you need 5 points. if you want 5 you need 9 points. Edited by author 03.02.2009 14:53 Thanks for 9 and for Ramsei. Owing to your post I've read something of theory of Ramsei. And I find it enough curious. Thanks for it. Thanks a lot. Very interesting theory. |
| Who knows what on test 5??? | holtaf | 1005. Куча камней | 19 янв 2011 00:27 | 2 |
|
| Hint | Hakobyan Tigran (RAU) | 1249. Древний некрополь | 18 янв 2011 23:35 | 1 |
Hint Hakobyan Tigran (RAU) 18 янв 2011 23:35 |
| who know test 5,,,help!!! | Virtuoz | 1800. Закон бутерброда | 18 янв 2011 03:50 | 2 |
here is my code int main() { double l, h, w,N,angle; double P=3.14; double g=9.81,t,speed; cin>>l>>h>>w; t=sqrt(2*h/(g*100)); speed=w/60; N=t*speed; angle=N*360; while(angle>360) { angle=angle-1; } if(angle>90 && angle<270) cout<<"bread"; else cout<<"butter"; //system("pause"); } i think you need to remember about l in counting time te total hight should be h-0,5l because you must remember that after h-0,5l it can spin arround. and you have few more mistakes but i'm not sure of that because my one its not perfect to |
| getting WA2 please help | Anupam Ghosh,Bengal Engg and Sc Uni,MtechIT,2006-09,India | 1510. Порядок | 18 янв 2011 00:03 | 3 |
is the problem as easy as it seems or there is some trick? ACM problems r never easy except a very few which i have solved.please provide some test cases. now getting TLE for test 19 can somebody please suggest some hints to solve the problem. try to check the variant when n = 1 |
| Please add this test. | Zayakin Andrey[PermSU] | 1202. Путешествие по прямоугольникам | 17 янв 2011 19:18 | 1 |
#include <cstdio> int main() { freopen("output.txt", "w", stdout); printf("99999\n"); printf("0 0 10 100\n"); for(int i =0 ; i < 99998; ++i) { printf("%d %d %d %d\n", (i+1)*10,0,(i+2)*10 , 100); } return 0; } My early solution get AC, but must get TL. Edited by author 19.01.2011 16:05 |
| Sample output is wrong!!! (i thing) | Karavaev Artem | 1136. Парламент | 17 янв 2011 15:29 | 3 |
It seems to me, that in a problem a wrong example (Sample output). It should be 25 27 22 10 20 21 5 7 1 Please correct me if I something has not understood. thank. > It seems to me, that in a problem a wrong example (Sample output). > It should be 25 27 22 10 20 21 5 7 1 > Please correct me if I something has not understood. > thank. Edited by author 17.01.2011 15:31 |