hello
maximum time i solve this type of problem by this way
#include <stdio.h>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
struct Node {
vector <string> S;
};
vector <Node> V;
bool cmp(Node A, Node B) {
int i;
for (i = 0; i < A.S.size() && i < B.S.size ...
Search found 120 matches
- Mon Jan 29, 2007 10:51 am
- Forum: C++
- Topic: 2D string array for STL sort
- Replies: 3
- Views: 3284
- Sun Jan 28, 2007 9:40 am
- Forum: Volume 109 (10900-10999)
- Topic: 10944 - Nuts for nuts..
- Replies: 35
- Views: 18613
- Wed Jan 17, 2007 10:57 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10944 - Nuts for nuts..
- Replies: 35
- Views: 18613
- Mon Sep 18, 2006 3:40 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10080 - Gopher II
- Replies: 31
- Views: 26934
- Sun Sep 03, 2006 7:31 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11080 - Place the Guards
- Replies: 40
- Views: 18343
- Tue Jun 06, 2006 11:50 am
- Forum: Volume 110 (11000-11099)
- Topic: 11045 - My T-shirt suits me
- Replies: 18
- Views: 13672
- Tue Jan 31, 2006 6:49 am
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62542
- Tue Jan 31, 2006 6:34 am
- Forum: Volume 5 (500-599)
- Topic: 568 - Just the Facts
- Replies: 39
- Views: 21280
Hi athlon19831
Have you checked your sample input and output.
your this part is totally wrong. (when you multiply the value at that time it exceed the integer range) Try to solve this problem in another approch.
Thanks
MAP.
Have you checked your sample input and output.
Code: Select all
sum=1;
for(i=n;i>0;i--)
{
sum*=i;
}
Thanks
MAP.
- Mon Jan 23, 2006 7:18 am
- Forum: Volume 104 (10400-10499)
- Topic: 10464 - Big Big Real Numbers
- Replies: 10
- Views: 5848
- Tue Nov 22, 2005 2:06 pm
- Forum: Volume 8 (800-899)
- Topic: 880 - Cantor Fractions
- Replies: 24
- Views: 22406
- Tue Nov 22, 2005 1:49 pm
- Forum: Off topic (General chit-chat)
- Topic: What kinds of problems do you solve most ?
- Replies: 25
- Views: 81436
- Sun Oct 23, 2005 3:46 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10060 - A hole to catch a man
- Replies: 22
- Views: 8268
- Sun Oct 16, 2005 9:43 am
- Forum: Volume 100 (10000-10099)
- Topic: 10060 - A hole to catch a man
- Replies: 22
- Views: 8268
10060 A Hole to Catch a Man WA
Hi
I am getting wa in this problem but don't know why. I have trying to solve
this problem by this equation
(x1y2 + x2y3 + x3y4 + ............. + xny1) - (y1x2 + y2x3 + y3x4 +.......... ynx1)
can any body help me.
Here is my code
#include <stdio.h>
#include <string.h>
#include <math.h ...
I am getting wa in this problem but don't know why. I have trying to solve
this problem by this equation
(x1y2 + x2y3 + x3y4 + ............. + xny1) - (y1x2 + y2x3 + y3x4 +.......... ynx1)
can any body help me.
Here is my code
#include <stdio.h>
#include <string.h>
#include <math.h ...
- Wed Aug 24, 2005 11:56 am
- Forum: Volume 102 (10200-10299)
- Topic: 10279 - Mine Sweeper
- Replies: 102
- Views: 43327
- Wed Aug 24, 2005 11:41 am
- Forum: Volume 101 (10100-10199)
- Topic: 10107 - What is the Median?
- Replies: 74
- Views: 31568