Общий форум| Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения | | wa1 | Baurzhan | 1160. Network | 24 апр 2010 02:24 | 1 | wa1 Baurzhan 24 апр 2010 02:24 I submit prim's realization that got AC at olympiads.ru. Also i submitted kruskal's realization that got AC at some past contest. Why both AC programms can't pass test #1? can somebody give me tricky test cases? | | WA #12 | Abbas Mehrabian | 1421. Кредитные операции | 23 апр 2010 18:28 | 2 | WA #12 Abbas Mehrabian 18 авг 2006 22:06 Hi! I used greedy, but I get WA on #12! Can somebody help me? Me 2...So,what's the matter? | | Question: Example test | Florin Pogocsan | 1199. Мышка | 23 апр 2010 18:00 | 1 | Nevermind, I found my problem in the code. Edited by author 24.04.2010 02:55 | | why I was WA5,who can tell me what the test 5 like? | uuu | 1056. Центры сети | 21 апр 2010 20:32 | 1 | | | To ADMINS: orphography mistake | bsu.mmf.team | 1365. Тестирование вычислителя | 21 апр 2010 11:49 | 2 | ...Выяснилось, то данный модуль был написан 8 лет назад, к первому Чемпионату Урала, и его исходные коды за это время успели потерятся... нужен мягкий знак в слове "потерятЬся" | | WA 5# | Gdp | 1072. Маршрутизация | 21 апр 2010 09:17 | 1 | WA 5# Gdp 21 апр 2010 09:17 It is my program. program sad; var tu:array[1..100,1..100] of int64; d,p:array[1..1000] of int64; f:array[1..1000] of boolean; k,pre,pree:array[1..1000] of int64; a:array[1..90,1..6,1..8] of int64; ii,jj,w,i,j,m,n,u,v,bit,l,r,t,q,sum,g,i1,i2,i3,i4,n1,n2,n3,n4:longint; c:char;s:string; function pd:boolean; var w:longint; begin for w:=1 to 4 do if a[i,j,w]<>a[ii,jj,w] then exit(false); exit(true); end; procedure spfa(s:longint); var i,j,k,h,t,x:longint; begin fillchar(f,sizeof(f),false); fillchar(p,sizeof(p),0); for i:=1 to n do d[i]:=maxlongint shr 1; f[s]:=true; t:=1; h:=0; d[s]:=0; p[t]:=s; while h<>t do begin h:=(h mod n)+1; x:=p[h]; f[x]:=false; for j:=1 to n do if (tu[x,j]<>0) and (d[x]+tu[x,j]<d[j]) then begin d[j]:=d[x]+tu[x,j]; if not f[j] then begin t:=(t mod n) +1; p[t]:=j; f[j]:=true; pre[j]:=x; end; end; end; end; begin readln(n); for i:=1 to n do begin readln(k[i]); for j:=1 to k[i] do begin readln(s); g:=pos('.',s);val(copy(s,1,g-1),i1);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),i2);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),i3);delete(s,1,g); g:=pos(' ',s);val(copy(s,1,g-1),i4);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),n1);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),n2);delete(s,1,g); g:=pos('.',s);val(copy(s,1,g-1),n3);delete(s,1,g); val(s,n4); a[i,j,1]:=i1 and n1; a[i,j,2]:=i2 and n2; a[i,j,3]:=i3 and n3; a[i,j,4]:=i4 and n4; end; end; for i:=1 to n do for ii:=1 to n do for j:=1 to k[i] do for jj:=1 to k[ii] do begin if not pd then break; tu[i,ii]:=1; tu[ii,i]:=1; end; readln(l,r); spfa(l); q:=r; sum:=0; while q<>0 do begin inc(sum); pree[sum]:=q; q:=pre[q]; end; if (sum>1) and (sum<>0) then begin writeln('Yes'); for i:=sum downto 1 do write(pree[i],' '); end else write('No'); writeln; end. WA at 5# ~~ Help me~! | | WA1 | Samael500[It-Team] | 1047. Простые вычисления | 21 апр 2010 02:03 | 1 | WA1 Samael500[It-Team] 21 апр 2010 02:03 I found my stupid mistake! need have only one: #include <cmath> Edited by author 30.04.2010 02:30 | | to Admins | unlucky [Vologda SPU] | 1072. Маршрутизация | 20 апр 2010 19:40 | 2 | to Admins unlucky [Vologda SPU] 15 фев 2010 02:44 I think, that there was no adjustment to the "order of the computers" for output in problem "Output" paragraph. I think, that it was no difference between direct path and reverse path. So, for example code, that printed Yes 1 3 5 6 was Accepted, but code, that printed Yes 6 5 3 1 was rejected. | | Problem 1209 "1, 10, 100, 1000..." has been rejudged (+) | Sandro (USU) | 1209. 1, 10, 100, 1000... | 20 апр 2010 12:12 | 1 | New tests were added. 196 authors lost AC after rejudge. | | How to solve this problem? | IGOR_Lviv NU | 1763. Блоха-знаток | 20 апр 2010 00:15 | 4 | Edited by author 20.04.2010 21:24 Edited by author 20.04.2010 21:24 Edited by author 30.07.2010 20:32 | | WHAT IS WRONG?????? | HTL[1 course of RAU] | 1644. Куча орехов | 19 апр 2010 20:47 | 1 | #include <iostream> #include <string> #include <algorithm> using namespace std; const int N=100; int main() { int n,i,k; int x[N],y[N]; string z[N]; int total_s=0,total_h=0; cin>>n; cin>>ws; for(i=0;i<n;i++) { getline(cin,z[i]); } for(i=0;i<n;i++) { if(z[i][2]=='s') { y[total_s++]=z[i][0]-48; } if(z[i][2]=='h') { x[total_h++]=z[i][0]-48; } } sort(x,x+total_h); sort(y,y+total_s); if(total_s==0) { cout<<"10"<<endl; } else { if(y[0]<=x[total_h-1]) { cout<<"Inconsistent"<<endl; } else { cout<<y[0]<<endl; } } return 0; } | | About the statement | LSBG | 1046. Геометрические грёзы | 19 апр 2010 13:11 | 2 | From the statement it is not obvious whether the triangle isosceles with AiMi = Ai+1Mi or some other legs equality. I think it is worth adding that to the statement. | | To Admins | Fcdkbear[VNTU] | 1214. Странная процедура | 19 апр 2010 12:55 | 2 | I think, the tests for this problem are not very good. In my code i forgot to check the case, where x or y are not positive, but i get AC. I think, that there must be a test case like that: -2 1. Edited by author 19.04.2010 12:55 | | New tests for this problem. | Teacher30 | 1325. Грязь | 19 апр 2010 12:09 | 2 | run_id = 2970301 test: 10 10 1 1 10 10 1211211212 2111221212 2221001111 1112112012 2112102112 2111200222 1112021212 2222011211 2112222222 2012122122 right_answer: 12 1 my program produces answer 14 1 | | To admins..(+) | grayluck | 1195. Крестики-нолики | 19 апр 2010 08:50 | 2 | I found that an AC program(by others) gave me a incorrect answer in this test: #XO X#O X#O my program outputs:Ouths win but the AC program outputs:Crosses win So i think this test should be added up and the problem should be rejudged.thanks. Read "Site news". Your test is incorrect, because game is already finished by Noughts. | | 1409 | Rashad | | 18 апр 2010 23:18 | 5 | 1409 Rashad 14 апр 2010 07:51 Getting WA in case number 2. Do anyone know what is test #2???? Please help. Re: 1409 dAFTc0d3r [Yaroslavl SU] 15 апр 2010 09:59 This problem is very easy. Just try to think a little bit. I am having some problem with input 10 10. One is starting from left side another is starting from right side. Can they shot 10 can each???? What should I do?? Can you send me some easy problem list for solving. I wanna build up my confidence. Will you help me??? Re: 1409 dAFTc0d3r [Yaroslavl SU] 18 апр 2010 23:18 1 2 3 4 5 6 7 8 9 x 9 8 7 6 5 4 3 2 1 The ans for 10 10 is 9 9. | | WA8 | XTender | 1729. Сундук мертвеца | 18 апр 2010 20:57 | 1 | WA8 XTender 18 апр 2010 20:57 Algorithm right, but what in 8 test? Please, give me test; | | PLEASE TELL ME WHAT IS WRONG?????? | HTL[1 course of RAU] | 1768. Кольцевые струны | 18 апр 2010 19:37 | 1 | OH I've found my mistake!!!!! Edited by author 19.04.2010 17:58 Edited by author 19.04.2010 17:59 | | to admins | Vasilenko Oleg (South Ural State University) | 1589. Сокобан | 18 апр 2010 18:37 | 7 | to admins Vasilenko Oleg (South Ural State University) 20 июл 2009 09:32 I have a good test. Can you add it? Send it to our support email Re: to admins Vasilenko Oleg (South Ural State University) 20 июл 2009 13:10 I've sent a test to "timus_support@acm.timus.ru". Have you received it? I have got new good test. Can you add it? Send it to our support email I've sent a test to "timus_support@acm.timus.ru". | | where is my mistake | nikipet | 1005. Куча камней | 18 апр 2010 15:18 | 3 | #include<iostream> using namespace std; double a[100],s1,s2; int n; void read() { int i; cin>>n; for(i=0;i<n;i++) cin>>a[i]; } void z() { int i; s1=a[0]; for(i=1;i<n;i++) { if(s1<s2) s1+=a[i]; else s2+=a[i]; } if(s1<s2) cout<<s2-s1<<endl; else cout<<s1-s2<<endl; } int main () { read(); z(); return 0; } Edited by author 03.11.2009 03:34 |
|
|