/*@BEGIN_OF_SOURCE_CODE*/
#include<stdio.h>
#include<stdlib.h>
#define BLACK 2
#define WHITE 1
int vertex[102][102];
int flag[102],x[102],max,vertx;
void Coloring(int i,int count)
{
int j;
if(i==vertx){
if(max<count){
max =count;
for(j=0;j<vertx;j++)
if(flag[j]==BLACK) x[j] =1;
else x[j ...
Search found 8 matches
- Sun Aug 11, 2002 6:49 pm
- Forum: Volume 1 (100-199)
- Topic: 193 - Graph Coloring
- Replies: 93
- Views: 36436
- Sun Aug 11, 2002 6:45 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10326 - The Polynomial Equation
- Replies: 18
- Views: 7921
10326-----what's special about it
/*@BEGIN_OF_SOURCE_CODE*/
#include<stdio.h>
int main()
{
int n,i,j,k,temp,flag;
long long Coeff[55],sum,root[55];
while(scanf("%d",&n)==1){
for(i = 0;i<n;i++) scanf("%lld",&root ),Coeff = 0;
Coeff[0] = 1;
for(i =n-1;i>0;i--){
Coeff[0] *=root ;
for(j=0;j<n;j++){
sum = 1;
for(k =n-i-1;k ...
#include<stdio.h>
int main()
{
int n,i,j,k,temp,flag;
long long Coeff[55],sum,root[55];
while(scanf("%d",&n)==1){
for(i = 0;i<n;i++) scanf("%lld",&root ),Coeff = 0;
Coeff[0] = 1;
for(i =n-1;i>0;i--){
Coeff[0] *=root ;
for(j=0;j<n;j++){
sum = 1;
for(k =n-i-1;k ...
- Fri Aug 09, 2002 10:09 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 34630
- Fri Aug 09, 2002 5:49 am
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 44331
- Fri Aug 09, 2002 5:41 am
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 34630
re: SJN
1. Length of longest match : 1
2. Length of longest match : 1
2. Length of longest match : 1
- Wed Aug 07, 2002 9:15 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 34630
- Wed Aug 07, 2002 9:12 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10190 - Divide, But Not Quite Conquer!
- Replies: 105
- Views: 38432
- Wed Aug 07, 2002 9:04 pm
- Forum: Volume 5 (500-599)
- Topic: 514 - Rails
- Replies: 79
- Views: 37649
What is the algorithm
It seems strange . What is the algorithm of that probelm ? I tried in a similar way but got wa. Will someone explain the algorithm?