I am getting WA for this problem :( . Could anyone can help me by some critical input/output??
I also mention my code here; If can, then check it up:
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cstring>
#include<string>
#include<iostream>
#include<map>
using namespace std;
#define ...
Search found 21 matches
- Thu Oct 09, 2008 12:01 am
- Forum: Volume 7 (700-799)
- Topic: 793 - Network Connections
- Replies: 102
- Views: 47650
- Wed Oct 01, 2008 7:22 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11048 - Automatic Correction of Misspellings
- Replies: 30
- Views: 17564
Re: 11048 - Automatic correction of misspellings
I am getting WA. I test my code for all input from forum & it gives correct answer. Can anyone give me some tricky input/output for which my code fail??
Here is my code:
//Problem no: 11048 Automatic correction of misspellings
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cstring ...
Here is my code:
//Problem no: 11048 Automatic correction of misspellings
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cstring ...
- Tue Mar 25, 2008 9:13 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10369 - Arctic Network
- Replies: 45
- Views: 32318
- Wed Dec 05, 2007 7:12 am
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
- Tue Dec 04, 2007 9:10 pm
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
- Sun Aug 19, 2007 6:23 pm
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
Thanks everyone
Thanks everyone for helping. Now i get AC.
Actually, "eps" has no affect on this problem. But i think, its a good programming habit to use it.
The only problem in my code was that, i thought that, for checking the formula-
a1/a2 = b1/b2 = c1/c2
it is enough to check- a1/a2==b1/b2 && b1/b2==c1/c2 ...
Actually, "eps" has no affect on this problem. But i think, its a good programming habit to use it.
The only problem in my code was that, i thought that, for checking the formula-
a1/a2 = b1/b2 = c1/c2
it is enough to check- a1/a2==b1/b2 && b1/b2==c1/c2 ...
- Sat Aug 18, 2007 6:56 pm
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
- Fri Aug 17, 2007 9:22 pm
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
- Fri Aug 17, 2007 8:20 am
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
whay WA!!
I become tired getting WA from this problem
. I test all the SAMPLE I/o from forum, my program show Correct Answer. But whats happen to UVA???
plz help....if can give some sample I/O for which my code show WA

plz help....if can give some sample I/O for which my code show WA
Code: Select all
//CODE has removed after getting AC!!
- Sun Mar 18, 2007 11:09 am
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 69515
WHy output limit exceed
I have done this problem; it show right answer for all testing input. But when i submit it, it show output limit exceed!
why?
Please help me or give me some test input&output
why?
Please help me or give me some test input&output
Code: Select all
Code has removed after getting AC
- Wed Mar 14, 2007 8:05 am
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83863
- Sat Mar 10, 2007 11:47 am
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83863
Re:
But in the problem, its said that-
[quote]All the years will not be less than 2000 (to avoid the earlier different rules for leap years). Please don
[quote]All the years will not be less than 2000 (to avoid the earlier different rules for leap years). Please don
- Sat Mar 10, 2007 7:53 am
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83863
Why WA in 10070
I have do this problem and test it for all possible output from forum. It work here.
But when, i submit this in ACM, it show wrong answer
.
Why???
Can anyone help me?
But when, i submit this in ACM, it show wrong answer

Why???
Can anyone help me?
Code: Select all
Code removed after getting AC
- Mon Feb 05, 2007 8:48 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155512
- Mon Feb 05, 2007 8:19 am
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155512