Search found 9 matches

by zilnus
Sat Apr 09, 2005 8:34 am
Forum: Off topic (General chit-chat)
Topic: Your hobbies?
Replies: 8
Views: 4266

My hobby :
-football,basketball
-read (manga,novel,etc)
-watch movie--> true life story like October Sky
-watch anime
-eat,sleep :D
-etc
by zilnus
Thu Oct 28, 2004 1:21 pm
Forum: Volume 5 (500-599)
Topic: 527 - The partition of a cake
Replies: 11
Views: 1234

527 WA : Can give simple input ?

I'm still WA for this problem. Can anyone give test case for me ?
Thanx.GBU
by zilnus
Fri Sep 19, 2003 7:45 am
Forum: Volume 6 (600-699)
Topic: 699 - The Falling Leaves
Replies: 7
Views: 6096

699 - The Falling Leaves

[cpp] #include <iostream.h> #include <string.h> #include <stdio.h> void rekursif(int heap[],int i,int *logik); void rekursif2(int heap[],int hasil[],int i,int j); int main() { char input[255]; int heap[1000],i,x,logik,hasil[1000],kasus; logik = 1; kasus = 0; while(1) { if (!logik) break; for(i=0;i<1...
by zilnus
Mon Sep 08, 2003 11:20 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 51433

Thanx, now I understand. I use recursive, but it is SIGSEV. Is there anyone who can find bug in my source code. [cpp] #include <iostream.h> #include <stdio.h> #include <string.h> void tukar(int *a,int *b); void floodfill(char x[300][300],int X,int Y,char color,char color2,int M,int N); int main() { ...
by zilnus
Mon Sep 08, 2003 11:06 am
Forum: Volume 100 (10000-10099)
Topic: 10048 - Audiophobia
Replies: 27
Views: 9414

10048 WA

I don't know why WA. Is any special test case ? [c] int min(int a,int b); int max(int a,int b); int main() { int weight[100][100],d[100][100],hasil[1000]; int C,S,Q,a,b,berat,i,j,k,kasus = 1; while (scanf("%d %d %d",&C,&S,&Q)) { if (!C&&!S&&!Q) break; for (i=0;i<C;i++) for (j=0;j<C;j++) weight [j] =...
by zilnus
Sat Sep 06, 2003 10:23 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 51433

10267 WA

I'm sorry. My English is bad. Anyone can defined this statement to me Any other pixel which is the same color as pixel(X,Y) and shares a common side with any pixel in R also belongs to this region. I translate this to C [cpp] case 'F' : sscanf (input,"%c %d %d %c",&CC,&X1,&Y1,&color); CC = pixel[Y1-...
by zilnus
Thu Sep 04, 2003 10:24 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 44715

10137 Why WA ?

[cpp] #include <iostream.h> int main() { int a = 1,i; long double amount[1000]; long double temp,total,rata,hasil; while (a != 0) { cin >> a; total = hasil = 0; if (a != 0) { for (i=0;i<a;i++) { cin >> temp; amount = temp; } for (i=0;i<a;i++) total += amount ; rata = total/a; rata = rata*100; rata =...
by zilnus
Thu Sep 04, 2003 9:20 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 65644

10189 Why WA?

[c] int main() { int i,j,k,l,m,a,b; int win[200][200]; int nextx[8] = {-1,-1,-1,0,0,1,1,1}; int nexty[8] = {-1,0,1,-1,1,-1,0,1}; char string[150]; int kasus = 1; while ((i != 0)&&(j != 0)) { scanf("%d %d",&i,&j); for (a=0;a<105;a++) for (b=0;b<105;b++) win[a] = 0; for (k=1;k<=i;k++) { scanf("%s",str...
by zilnus
Sat Mar 22, 2003 12:59 pm
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 15442

612 ???

[c] #include <stdio.h> typedef struct { char string[51]; int nilai; } liststring; int main() { int i,n,m,count,j,key,k; liststring data[101],temp; scanf ("%d %d",&n,&m); for (i=0;i<m;i++) scanf ("%s",&(data .string)); /* Algoritma */ for (k = 0;k<m;k++) { count = 0; for (i = 0;i<n;i++) { key = data[...

Go to advanced search