Search found 4 matches

by Doodge
Thu Jan 02, 2003 8:10 pm
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 28865

thanks. i wasn't sure that the method isn't good, but i couldn't find any inouts giving wrong answers. you found it. i'm really grateful.
by Doodge
Wed Jan 01, 2003 9:06 pm
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 28865

Thx for Your help, but it still gots WA.
by Doodge
Wed Jan 01, 2003 1:20 pm
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 28865

I have some problems with this program :cry: it gots WA, but I have no idea why :P Here's my source, maybe You can find the bug, because i have spent a lot of time on searching it, but i haven't found it. Maybe it's a problem with input?


[cpp]// Periodic Strings
#include <iostream.h>
#include ...
by Doodge
Thu Aug 08, 2002 12:56 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 33288

Can anybody find a mistake in this source? I can't but it gets WA.

[c]// Combinations
#include <iostream.h>
#include <math.h>

int n, k;
int ilprim;
int prim[25];
int ilp[25];
int testno=0;

void gen_smart()
{
int pri, i, j;
prim[0]=2;
prim[1]=3;
ilprim=2;
i=5;
while (i<100)
{
pri=1;
j=0 ...

Go to advanced search