Search found 5 matches

by aia
Sun Mar 07, 2010 3:28 pm
Forum: Volume 115 (11500-11599)
Topic: 11541 - Decoding
Replies: 12
Views: 4815

Re: 11541 - Decoding

hi I hope sm could help me in this code I don't know why it's WA #include<iostream> #include<string> #include <stdio.h> #include <stdlib.h> using namespace std ; string Repeted(char ch , int rep) { string result ; for(int i=0 ; i<rep ; i++) result+=ch ; return result ; } int convert_to_int (string n...
by aia
Fri Jan 08, 2010 2:54 am
Forum: Volume 115 (11500-11599)
Topic: 11571 - Simple Equations - Extreme!!
Replies: 31
Views: 11072

102

Hi I solved this problem , but it's WA I don't know why could anyone help me ? thanks in advance my code : #include<iostream> #include<string> #include<fstream> using namespace std ; fstream fin("IN.txt"); int main() { int bin1[3] , bin2[3] , bin3[3] ; string result ; while(fin>>bin1[0]) { int max =...
by aia
Mon Dec 07, 2009 10:10 pm
Forum: Volume 1 (100-199)
Topic: 164 - String Computer
Replies: 120
Views: 11259

Re: #164 I think there is a bug in your tests!!!

plz could anyone help me to know the bug in my code in this Problem this is my code : #include<iostream> #include<vector> #include<string> //#include<fstream> #include<math.h> using namespace std ; //fstream fin ("IN.txt"); //fstream fout("Out.txt"); string str1 , str2; int Table[100][100]; int i , ...
by aia
Fri Dec 04, 2009 4:59 pm
Forum: Volume 1 (100-199)
Topic: 164 - String Computer
Replies: 120
Views: 11259

Re: problem 164 .. why WA !! ???

??? ?? ?????? ??? ???? ?? ??????? ?? ???????? ????? ?? ?? ????? ??? ????? cases ? ?? ?? ????? ????? ??? ???? ???????? #include<iostream> #include<vector> #include<string> //#include<fstream> #include<math.h> using namespace std ; //fstream fin ("IN.txt"); //fstream fout("Out.txt"); string str1 , str...
by aia
Wed Dec 02, 2009 12:36 am
Forum: Volume 1 (100-199)
Topic: 164 - String Computer
Replies: 120
Views: 11259

164-string computer

Hi , I don't know where is the bufg in my code but I suggest the bug is in this function when back track to read the statement Could Anyone help me ? string convert(int num) { string number="" ; int tempnum =num ; int i=0 ; while(num!=0) { if(num>=1 && num<=9) number+=num+'0' ; else number+=(num%10...

Go to advanced search