Search found 10 matches

by Jer
Sun Feb 20, 2005 3:44 pm
Forum: Volume 101 (10100-10199)
Topic: 10150 - Doublets
Replies: 46
Views: 45913

10150 Doublets

Can anyone help me??

I don't know why i got "Runtime Error (SIGSEGV)".

#include <iostream>
#include <queue>
#include <stdlib.h>
#include <string>
#define maxV 25148
using namespace std;
struct node
{
int v;
struct node *next;
};
int V;
struct node *adj[maxV], *z;
char dic[maxV][20];
int val ...
by Jer
Fri Jan 28, 2005 3:34 am
Forum: C++
Topic: Why Compile Error?? C++
Replies: 2
Views: 2229

Oh,Thank you very much.
:oops:
by Jer
Thu Jan 27, 2005 3:58 pm
Forum: C++
Topic: Why Compile Error?? C++
Replies: 2
Views: 2229

Why Compile Error?? C++

I run the following code on the Dev-C++ and VC++, and it was corrected.
But the judge give me "Compile Error".
Can anyone help me?




#include <stack>
#include <vector>
#include <iostream>

using namespace std;
stack<int> o;
stack<int> d;
vector<int> com;
int x[11]={0};
int y[11]={0};
int t ...
by Jer
Wed Jan 26, 2005 6:49 pm
Forum: Volume 6 (600-699)
Topic: 656 - Optimal Programs
Replies: 1
Views: 2056

656 - Optimal Programs

Can anyone explain the problem to me?

I don't know why the first test data is like that... :(

Code: Select all

4
1 2 3 4
0 -2 -6 -12

Program 1
DUP DUP MUL SUB
:wink: Thanks for your help

_____________________
by Jer
Sun Feb 08, 2004 10:16 am
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 44497

Oh , it's true.... :o
the sample output confused me.
thank you very much,sohel.
:D
by Jer
Sat Feb 07, 2004 11:24 am
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 44497

10041

i think it want us to ouput the N/2's in the sorted data (0~N).
i use the partition function to find it.
but i got WA much time .
Can anyone help me ?
or provided some test data....thanks.~~
by Jer
Sat Jan 03, 2004 4:27 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 50266

Oh!!yes....~~thank you~~
by Jer
Sat Jan 03, 2004 10:19 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 50266

No, double is enough. I have a similar solution, but with two more lines at the begining of the main function:
[cpp] cout.setf(ios::fixed);
cout.precision(0); [/cpp]
I don't remember why I put them there, but there must have been a reason :-)

I fix the code
[cpp] cout<<(long)pow(p,(double)1/n ...
by Jer
Fri Jan 02, 2004 6:46 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 50266

where is the bug?? can you help me 113~~~

help me~~ plz~~

[cpp]
#include <iostream.h>
#include <math.h>
int main(void)
{
double p,n;
while(cin>>n>>p) {
cout<<pow(p,(double)1/n)<<endl;
}
return 0;
}[/cpp]
by Jer
Wed Nov 19, 2003 2:21 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65109

the output form??

this is my output form :

3 1234567
*******aaa***aaa*********aaa***aaa***aaa
****b*****b*****b*b***b*b*****b*********b
****b*****b*****b*b***b*b*****b*********b
****b*****b*****b*b***b*b*****b*********b
*******aaa***aaa***aaa***aaa***aaa
****b*b*********b*****b*****b*b***b*****b
****b*b*********b ...

Go to advanced search