Search found 85 matches

by Igor9669
Sun Dec 28, 2008 6:09 pm
Forum: Volume 114 (11400-11499)
Topic: 11491 - Erasing and Winning
Replies: 14
Views: 6369

Re: 11491 - Erasing and Winning

Please tell me why I got TLE??? My algo is O(2*N).... Here is my code: #include <iostream> #include <string> using namespace std; string s; int main(){ //freopen("win.in","r",stdin); freopen("win.out","w",stdout); int i,n,j,k,len,del,x,y; bool ok; while(1) { ok=false; cin>>n>>k; if(n==0 && k==0)brea...
by Igor9669
Sun Dec 28, 2008 11:01 am
Forum: Volume 115 (11500-11599)
Topic: 11565 - Simple Equations
Replies: 21
Views: 5947

Re: 11565 Simple Equations WA!!!

I think this test will help you:
1 120 245
Answer is: -10 -1 12
by Igor9669
Sun Dec 28, 2008 10:20 am
Forum: Volume 115 (11500-11599)
Topic: 11565 - Simple Equations
Replies: 21
Views: 5947

Re: 11565 Simple Equations WA!!!

No, try this test:
3 1 3
Right answer is: No solution!
by Igor9669
Sun Dec 28, 2008 9:45 am
Forum: Volume 115 (11500-11599)
Topic: 11565 - Simple Equations
Replies: 21
Views: 5947

Re: 11565 Simple Equations WA!!!

Read the statement more carefully ....
And you will find your bug!!!
by Igor9669
Sat Nov 22, 2008 10:51 am
Forum: Volume 101 (10100-10199)
Topic: 10154 - Weights and Measures
Replies: 60
Views: 40304

Re: 10154 - Weights and Measures

Please tell me what's wrong??? Here is my code: #include <cstdio> #include <algorithm> using namespace std; #define MAXN 5607 int MIN(int a,int b) { return a<b?a:b; } typedef struct { int strenght,weight; }turtle; bool CMP(const turtle& a,const turtle& b) { if(a.strenght!=b.strenght) { return a.stre...
by Igor9669
Fri Nov 21, 2008 8:55 pm
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 13135

It is very strange!!!!

It is very strange!!!!
At first I have got WA, and I don't know why it was....
But when I added a condition :
if(max==0)while(1); I got accepted!
Who could tell me why this was happen?
by Igor9669
Sat Nov 15, 2008 11:01 am
Forum: Volume 1 (100-199)
Topic: 164 - String Computer
Replies: 120
Views: 11524

Re: #164 I think there is a bug in your tests!!!

I had changed the priority from DELETE->INSERT->MATCH to MATCH->INSERT->DELETE and got Accepted!
I think it is very very strange.......
by Igor9669
Fri Nov 14, 2008 4:53 pm
Forum: Volume 1 (100-199)
Topic: 164 - String Computer
Replies: 120
Views: 11524

Re: I think there is a bug in your tests!!!

this is a problem #164!!!
Are my answers correct???
by Igor9669
Thu Nov 13, 2008 7:32 pm
Forum: Volume 1 (100-199)
Topic: 164 - String Computer
Replies: 120
Views: 11524

#164 I think there is a bug in your tests!!!

In all my tests my program gives a correct answers? I don't know why WA??? test: abcde bcgfe a accdd accdd a abcxdefxghix abcyydefyyghiyy ddppqq dapaqaaa aab aab (space)dddd dddd(space) abcdefghijklxyztpr pacdfeoomnrdffrr # answer: Da01Cg03If04E Ic02Ic03Id04Id05E Dc02Dc02Dd02Dd02E Cy04Iy05Cy09Iy10Cy...
by Igor9669
Sun Jun 08, 2008 1:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10026 - Shoemaker's Problem
Replies: 82
Views: 34746

Re: 10026 - Shoemaker's Problem

Yes! I agree with you, that this is a sorting problem!

Go to advanced search