Search found 26 matches

by farzane
Mon Jul 24, 2006 7:14 pm
Forum: Volume 110 (11000-11099)
Topic: 11053 - Flavius Josephus Reloaded
Replies: 22
Views: 10704

Is there any other link like the one you introduce above describing about other problems in this site ?(for example for last contests)
by farzane
Sun Jul 23, 2006 4:28 pm
Forum: Volume 110 (11000-11099)
Topic: 11054 - Wine trading in Gergovia
Replies: 25
Views: 6782

11054 - Wine trading in Gergovia

Any suggestion for a fast algorithm for this problem?
by farzane
Tue Jun 20, 2006 10:44 pm
Forum: Volume 1 (100-199)
Topic: 142 - Mouse Clicks
Replies: 58
Views: 6273

please please help(142)

why WA: //Mouse Click //#include<fstream.h> #include<math.h> #include<iostream.h> #include<stdio.h> long int reginNo=0,iconNo=0,name=0,ans[25],ansNo; long int regin[50][4],icon[25][2],x,y,iconname[50]; char c; int clickregin(int i){ if(x>=regin[i][0]) if(x<=regin[i][2]) if(y>=regin[i][1]) if(y<=regi...
by farzane
Tue Jun 20, 2006 9:50 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35478

you should consider leading zeros.
I mean when input is 007 output shouldn't be as same as when input is 7.
you could get the No in string and for checking end of inputs it is enough just to check s.
I hope it could help. :wink:
by farzane
Tue Jun 20, 2006 9:39 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35478

706

I got PE.what's wrorng whit my code: #include<iostream.h> #include<string.h> char digits[10][5][4]; void main(){ strcpy(digits[0][0],"-\0"); strcpy(digits[0][1],"||\0"); strcpy(digits[0][2]," \0"); strcpy(digits[0][3],"||\0"); strcpy(digits[0][4],"-\0"); strcpy(digits[1][0]," \0"); strcpy(digits[1][...
by farzane
Mon Jun 19, 2006 11:43 pm
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13652

I think this two endl are needed.But I also tried your suggestion,still got PE
Please help.
by farzane
Sat Jun 17, 2006 12:36 am
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13652

10500 PE

could any one please tell me what's wrong in this code that I got P.E: #include<iostream.h> #include<stdio.h> //#include<fstream.h> enum status{con,stop}; void main(){ status st; char board[11][11],map[11][11],str[10],vis[11][11]; int i,k,j,m,n,steps; int curX,curY; //ifstream cin("10500.in"); cin>>...
by farzane
Sat Jun 17, 2006 12:27 am
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 9875

300 WA

could any one please tell me why got WA on this code: #include<string.h> //#include<fstream.h> #include<iostream.h> void main(){ // ofstream cout("f:\\my300.out"); // ifstream cin("f:\\300.in"); char habmons[20][10]={ "pop","no","zip","zotz","tzec","xul","yoxkin","mol","chen","yax","zac","ceh", "mac...
by farzane
Thu Jun 15, 2006 11:16 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31736

but I got a presentation error here I copy_past my code from my email that after that I recived presentation error.Maybe last time I put another code.If so I'm realy sorry. here it is: You are trying to solve "Palindromes" (problem 401). I have received and stored your C++ program. It will be compil...
by farzane
Thu Jun 15, 2006 11:18 am
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 22182

reply to 494(fixit)

Hi dear fixit First:you didn't say what kind of problem you had with your code.After submition what kind of error you recived. Your algorithm for this problem is true for sure.I submitted a solution for this problem by this algoritm and I recived an ACCEPTED reply. Here is my code in c++: ----------...
by farzane
Thu Jun 15, 2006 9:41 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31736

401(please help)

Hi dear all; I sent this code for problem 401"Palindromes" and I recieved a presentation error. could any one help me and say what's wrong whit this code. I'd realy appreciate you. Regard -----------------------code is here--------------------------- #include<iostream.h> void fstrcpy(char *des,char ...

Go to advanced search