Cant find a critical case. So far ive tested all i could think of an find.
Any help?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int windowPropertyCheck(char sequence[102],int size,int width)
{
int check=-1;
int patternCheck=-1;
char patterns[100][100];
int numOfPatterns=0 ...
Search found 11 matches
- Mon Jun 30, 2014 5:19 pm
- Forum: Volume 2 (200-299)
- Topic: 261 - The Window Property
- Replies: 3
- Views: 3449
- Mon Jun 30, 2014 12:38 pm
- Forum: Volume 1 (100-199)
- Topic: 153 - Permalex
- Replies: 32
- Views: 18456
Re: 153
Got ac, my optimized combination number calculation was skipping over one additional lettertype when i encountered the one i should skip over.(30!/15!=30*29...*16, and i did this, but if it was A, i would skip over Bs bcs of one mistakenly placed iteration.)
- Mon Jun 30, 2014 12:26 pm
- Forum: Volume 1 (100-199)
- Topic: 153 - Permalex
- Replies: 32
- Views: 18456
Re: 153
I am getting WA for unknown reasons.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int combinations(int size,int letterCounters[30])
{
int i;
int max=-1;
long long numerator=1;
long long denominator=1;
long long factorials[20];
factorials[0]=1;
for(i=1;i<20;i ...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int combinations(int size,int letterCounters[30])
{
int i;
int max=-1;
long long numerator=1;
long long denominator=1;
long long factorials[20];
factorials[0]=1;
for(i=1;i<20;i ...
- Fri Jun 27, 2014 1:57 pm
- Forum: Volume 2 (200-299)
- Topic: 209 - Triangular Vertices
- Replies: 51
- Views: 11894
Re: 209 - Triangular vertices help
Got an accepted, thank you. Managed to get it already yesterday. There was some sort of problem with this one 1 2 2 3 3 4. After i solved it, reverted 1 1 1 to not acceptable, i got AC.
- Thu Jun 26, 2014 2:48 pm
- Forum: Volume 2 (200-299)
- Topic: 209 - Triangular Vertices
- Replies: 51
- Views: 11894
Re: 209 - Triangular vertices help
#include <stdio.h>
#include <stdlib.h>
int cmpfunc (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}
int plotEdge(int vertexA, int vertexB)
{
int firstA,lastA;
int firstB,lastB;
int i,k;
int length=-1;
firstA=lastA=firstB=lastB=1;
for(i=1;firstA>vertexA||lastA<vertexA;i ...
#include <stdlib.h>
int cmpfunc (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}
int plotEdge(int vertexA, int vertexB)
{
int firstA,lastA;
int firstB,lastB;
int i,k;
int length=-1;
firstA=lastA=firstB=lastB=1;
for(i=1;firstA>vertexA||lastA<vertexA;i ...
- Thu Jun 26, 2014 1:18 pm
- Forum: Volume 2 (200-299)
- Topic: 209 - Triangular Vertices
- Replies: 51
- Views: 11894
209 - Triangular vertices help
#include <stdio.h>
#include <stdlib.h>
int plotEdge(int vertexA, int vertexB)
{
int firstA,lastA;
int firstB,lastB;
int i,k;
int length=-1;
firstA=lastA=firstB=lastB=1;
for(i=1;firstA>vertexA||lastA<vertexA;i++)
{
firstA=firstA+i;
lastA=lastA+i+1;
}
for(k=1;firstB>vertexB||lastB<vertexB ...
#include <stdlib.h>
int plotEdge(int vertexA, int vertexB)
{
int firstA,lastA;
int firstB,lastB;
int i,k;
int length=-1;
firstA=lastA=firstB=lastB=1;
for(i=1;firstA>vertexA||lastA<vertexA;i++)
{
firstA=firstA+i;
lastA=lastA+i+1;
}
for(k=1;firstB>vertexB||lastB<vertexB ...
- Sat May 10, 2014 2:58 pm
- Forum: Volume 2 (200-299)
- Topic: 297 - Quadtrees
- Replies: 16
- Views: 4646
297 - Quadtrees
#include <stdio.h>
#include <stdlib.h>
int main()
{
int pictureA[1024];
int pictureB[1024];
char current;
int cases;
scanf("%d",&cases);
fgetc(stdin);
for(;cases>0;cases--)
{
int multiplier=1024;
int i;
int hlbka=-1;
int k[5];
int blackpix=0;
for(i=0;i<5;i++)
{
k[i]=0;
}
i=0 ...
#include <stdlib.h>
int main()
{
int pictureA[1024];
int pictureB[1024];
char current;
int cases;
scanf("%d",&cases);
fgetc(stdin);
for(;cases>0;cases--)
{
int multiplier=1024;
int i;
int hlbka=-1;
int k[5];
int blackpix=0;
for(i=0;i<5;i++)
{
k[i]=0;
}
i=0 ...
- Tue Mar 25, 2014 7:59 pm
- Forum: Volume 5 (500-599)
- Topic: 544 - Heavy Cargo
- Replies: 32
- Views: 18468
Re: 544 - heavy cargo
Hello, I used the bellman ford modified to find minimal weight instead of full weight. I cant find a critical test case that gives me WA, all the other cases ive found on the internet are correct. Pls help.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader ...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader ...
- Tue Jan 28, 2014 11:56 pm
- Forum: Volume 5 (500-599)
- Topic: 522 - Schedule Problem
- Replies: 2
- Views: 1214
Re: 522 Schedule problem
Didnt know. Thx for the reply 

- Tue Jan 28, 2014 2:31 am
- Forum: Volume 5 (500-599)
- Topic: 522 - Schedule Problem
- Replies: 2
- Views: 1214
522 - Schedule Problem
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
int time;
int start;
}event;
int main()
{
int events,rulen,done;
int i,k;
int temp;
int rules[100000][3];
/*int **rules;*/
event *array;
k=1;
while((temp=fgetc(stdin))!=EOF&&(temp!='\n'))
{
ungetc(temp,stdin);
scanf("%d",&events ...
#include <stdlib.h>
typedef struct
{
int time;
int start;
}event;
int main()
{
int events,rulen,done;
int i,k;
int temp;
int rules[100000][3];
/*int **rules;*/
event *array;
k=1;
while((temp=fgetc(stdin))!=EOF&&(temp!='\n'))
{
ungetc(temp,stdin);
scanf("%d",&events ...
- Tue Jan 28, 2014 2:22 am
- Forum: Volume 5 (500-599)
- Topic: 528 - The Problem of Train Setout
- Replies: 1
- Views: 992
528 - The Problem of Train Setout
#include <stdio.h>
#include <stdlib.h>
int main()
{
int arrivee,arriveo;
int leavee,leaveo;
int time;
int expres[100000][2];
int ordinary[100000][2];
int i,j,k,l;
int write;
int starte,startl,starta;
scanf("%d%d%d%d%d",&arrivee,&arriveo,&leavee,&leaveo,&time);
i=j=k=l=starte=startl=write ...
#include <stdlib.h>
int main()
{
int arrivee,arriveo;
int leavee,leaveo;
int time;
int expres[100000][2];
int ordinary[100000][2];
int i,j,k,l;
int write;
int starte,startl,starta;
scanf("%d%d%d%d%d",&arrivee,&arriveo,&leavee,&leaveo,&time);
i=j=k=l=starte=startl=write ...