Search found 8 matches

by tuyide
Thu Sep 16, 2004 2:47 pm
Forum: Volume 2 (200-299)
Topic: 271 - Simply Syntax
Replies: 46
Views: 19796

271 wawawawa!

Is there anybody so kind to give me some advice?


[cpp]
#include <iostream>
#include <cstring>
using namespace std;
int key[255];
int is(char *p)
{
int stack[300],stack1[300],now,f;
int i,at=0;
int len=strlen(p);
for(i=0;i<len;i++)
{
if(p =='N')continue;
stack[at++]=key[p ];
}
while(1 ...
by tuyide
Thu Jul 01, 2004 6:41 pm
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 34097

help! 332 RTE

here's my code:
[cpp]
#include <iostream.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int main()
{
int a,b,i,d,j,k,m,cases=0,y;
char c,p[100];
while(cin>>j,j!=-1)
{cases++;
cin>>c>>c;
cin>>p;
k=strlen(p);
k-=j;
b=atoi(p);

i=1;
for(m=0;m<j;m++)i*=10 ...
by tuyide
Tue Dec 16, 2003 2:35 pm
Forum: Algorithms
Topic: Ask for algorithms for find large primes!
Replies: 5
Views: 2213

thnx!gvcormac.
Furthermore,can anybody tell me how can I compute whether a^(p-1) == 1 (mod p) ?
You know,it is very hard for me to calculate for the prime is too large(with 100 digits).
by tuyide
Sun Dec 14, 2003 8:53 am
Forum: Algorithms
Topic: Ask for algorithms for find large primes!
Replies: 5
Views: 2213

But how can I proof this ?
Is ther any reference that I can refer to?
by tuyide
Fri Dec 12, 2003 10:09 am
Forum: Algorithms
Topic: Ask for algorithms for find large primes!
Replies: 5
Views: 2213

Ask for algorithms for find large primes!

Please help me!
How can I find a prime with 150 digits?
Are there any algorithms?
by tuyide
Tue Oct 14, 2003 12:34 pm
Forum: Algorithms
Topic: a stupid problem
Replies: 3
Views: 1353

Thank you for help!
by tuyide
Sun Oct 12, 2003 4:10 pm
Forum: Algorithms
Topic: a stupid problem
Replies: 3
Views: 1353

I mean that its value should be 0 instead of 1
by tuyide
Sun Oct 12, 2003 3:47 pm
Forum: Algorithms
Topic: a stupid problem
Replies: 3
Views: 1353

a stupid problem

can anybody tell me why modf(pow(216,1/double(3)),&s)=1.0?

Go to advanced search